DbObject: allow to create without props

This commit is contained in:
Thomas Gelf 2015-10-13 17:53:01 +02:00
parent a39c8c3280
commit ef46c9de56

View File

@ -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(); $class = get_called_class();
$obj = new $class(); $obj = new $class();