IcingaObject: return a list for multi-related

This commit is contained in:
Thomas Gelf 2016-03-16 19:26:28 +01:00
parent 5a045adbb4
commit 61674546d9
1 changed files with 4 additions and 0 deletions

View File

@ -333,6 +333,10 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
return $this->getRelatedSet($key)->toPlainObject();
}
if ($this->propertyIsMultiRelation($key)) {
return $this->getMultiRelation($key)->listRelatedNames();
}
return parent::get($key);
}