From 3a8955a537f93c447183be90f315ef36dfdf4674 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 10 Mar 2020 08:17:39 +0100 Subject: [PATCH] History: Add relation for `acknowledgement_history` refs #27 --- library/Icingadb/Model/History.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Icingadb/Model/History.php b/library/Icingadb/Model/History.php index dd10be03..69007fba 100644 --- a/library/Icingadb/Model/History.php +++ b/library/Icingadb/Model/History.php @@ -32,6 +32,7 @@ class History extends Model 'downtime_history_id', 'flapping_history_id', 'notification_history_id', + 'acknowledgement_history_id', 'state_history_id', 'event_type', 'event_time' @@ -70,6 +71,7 @@ class History extends Model ->setForeignKey('downtime_id') ->setJoinType('LEFT'); $relations->belongsTo('notification', NotificationHistory::class)->setJoinType('LEFT'); + $relations->belongsTo('acknowledgement', AcknowledgementHistory::class)->setJoinType('LEFT'); $relations->belongsTo('state', StateHistory::class)->setJoinType('LEFT'); } }