Service: Use LEFT JOIN for notifications

This commit is contained in:
Eric Lippmann 2019-12-16 10:45:15 +01:00
parent c620fed954
commit 6d5c4e1fc3

View file

@ -113,7 +113,7 @@ class Service extends Model
$relations->hasMany('comment', Comment::class)->setJoinType('LEFT');
$relations->hasMany('downtime', Downtime::class)->setJoinType('LEFT');
$relations->hasMany('history', History::class);
$relations->hasMany('notification', Notification::class);
$relations->hasMany('notification', Notification::class)->setJoinType('LEFT');;
$relations->hasMany('notification_history', NotificationHistory::class);
}
}