From ef46c9de56a51e80fdb6d6768925005859724761 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 13 Oct 2015 17:53:01 +0200 Subject: [PATCH] DbObject: allow to create without props --- library/Director/Data/Db/DbObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Data/Db/DbObject.php b/library/Director/Data/Db/DbObject.php index c7e82f36..e7b5e29c 100644 --- a/library/Director/Data/Db/DbObject.php +++ b/library/Director/Data/Db/DbObject.php @@ -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();