IcingaObject: return null for missing relations
This commit is contained in:
parent
1cb47b6d32
commit
ce44252f8e
|
@ -141,6 +141,8 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
$object = $class::loadWithAutoIncId($id, $this->connection);
|
||||
return $object->object_name;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
return parent::get($key);
|
||||
|
|
Loading…
Reference in New Issue