diff --git a/library/Icingadb/Model/Host.php b/library/Icingadb/Model/Host.php index 37f7858d..50692d5c 100644 --- a/library/Icingadb/Model/Host.php +++ b/library/Icingadb/Model/Host.php @@ -118,7 +118,7 @@ class Host extends Model $relations->hasOne('state', HostState::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);