From 5e8d87d4a3d1be6a2791597effc6b7798060729f 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); } }