Host: Join comments with a LEFT join

This commit is contained in:
Johannes Meyer 2019-12-04 15:59:02 +01:00
parent 7958eda837
commit f743afd1ae

View file

@ -113,7 +113,7 @@ class Host extends Model
->through(HostgroupMember::class);
$relations->hasOne('state', HostState::class)->setJoinType('LEFT');
$relations->hasMany('comment', Comment::class);
$relations->hasMany('comment', Comment::class)->setJoinType('LEFT');
$relations->hasMany('downtime', Downtime::class);
$relations->hasMany('history', History::class);
$relations->hasMany('notification', Notification::class);