IcingaObject: return null for missing relations

This commit is contained in:
Thomas Gelf 2015-12-18 14:25:15 +01:00
parent 1cb47b6d32
commit ce44252f8e
1 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,8 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
$object = $class::loadWithAutoIncId($id, $this->connection); $object = $class::loadWithAutoIncId($id, $this->connection);
return $object->object_name; return $object->object_name;
} }
return null;
} }
return parent::get($key); return parent::get($key);