diff --git a/library/Director/Objects/IcingaTimePeriod.php b/library/Director/Objects/IcingaTimePeriod.php index d69707fa..3cfa29eb 100644 --- a/library/Director/Objects/IcingaTimePeriod.php +++ b/library/Director/Objects/IcingaTimePeriod.php @@ -22,6 +22,10 @@ class IcingaTimePeriod extends IcingaObject protected $supportsRanges = true; + protected $relations = array( + 'zone' => 'IcingaZone', + ); + /** * Render update property * diff --git a/library/Director/Objects/IcingaUser.php b/library/Director/Objects/IcingaUser.php index 237d4856..c50a2312 100644 --- a/library/Director/Objects/IcingaUser.php +++ b/library/Director/Objects/IcingaUser.php @@ -35,4 +35,9 @@ class IcingaUser extends IcingaObject 'states' => 'StateFilterSet', 'types' => 'TypeFilterSet', ); + + protected $relations = array( + 'period' => 'IcingaTimePeriod', + 'zone' => 'IcingaZone', + ); }