DbObject: allow to create without props
This commit is contained in:
parent
a39c8c3280
commit
ef46c9de56
|
@ -798,7 +798,7 @@ abstract class DbObject
|
|||
{
|
||||
}
|
||||
|
||||
public static function create($properties, DbConnection $connection = null)
|
||||
public static function create($properties = array(), DbConnection $connection = null)
|
||||
{
|
||||
$class = get_called_class();
|
||||
$obj = new $class();
|
||||
|
|
Loading…
Reference in New Issue