From 9d4ee405757af6386fcc3b8a476cba21cb9266f4 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 1 Apr 2016 17:18:09 +0200 Subject: [PATCH] IcingaObjects: add missing relations --- library/Director/Objects/IcingaTimePeriod.php | 4 ++++ library/Director/Objects/IcingaUser.php | 5 +++++ 2 files changed, 9 insertions(+) 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', + ); }