diff --git a/library/Icingadb/Model/Service.php b/library/Icingadb/Model/Service.php index 8dc877c7..7f24fa1e 100644 --- a/library/Icingadb/Model/Service.php +++ b/library/Icingadb/Model/Service.php @@ -111,7 +111,7 @@ class Service extends Model $relations->hasOne('state', ServiceState::class)->setJoinType('LEFT'); $relations->hasMany('comment', Comment::class)->setJoinType('LEFT'); - $relations->hasMany('downtime', Downtime::class); + $relations->hasMany('downtime', Downtime::class)->setJoinType('LEFT'); $relations->hasMany('history', History::class); $relations->hasMany('notification', Notification::class); $relations->hasMany('notification_history', NotificationHistory::class);