mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
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();
|
$class = get_called_class();
|
||||||
$obj = new $class();
|
$obj = new $class();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user