From 020aa760c51abb86edb1086a921c8ec55e04240f Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 2 Sep 2024 15:31:29 +0200 Subject: [PATCH] db: Add dependency relation to Timeperiod model --- library/Icingadb/Model/Timeperiod.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Icingadb/Model/Timeperiod.php b/library/Icingadb/Model/Timeperiod.php index e1664103b..34ff55096 100644 --- a/library/Icingadb/Model/Timeperiod.php +++ b/library/Icingadb/Model/Timeperiod.php @@ -98,5 +98,6 @@ public function createRelations(Relations $relations) $relations->hasMany('service', Service::class) ->setForeignKey('check_timeperiod_id'); $relations->hasMany('user', User::class); + $relations->hasMany('dependency', Dependency::class); } }