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
1 changed files with 1 additions and 1 deletions

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