IcingaObject: return a list for multi-related
This commit is contained in:
parent
5a045adbb4
commit
61674546d9
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue