diff --git a/src/Bundle/ChillMainBundle/Repository/NotificationRepository.php b/src/Bundle/ChillMainBundle/Repository/NotificationRepository.php index 38262f95e..35ec64114 100644 --- a/src/Bundle/ChillMainBundle/Repository/NotificationRepository.php +++ b/src/Bundle/ChillMainBundle/Repository/NotificationRepository.php @@ -160,6 +160,7 @@ final class NotificationRepository implements ObjectRepository ->select('n') ->where($qb->expr()->eq('n.relatedEntityClass', ':relatedEntityClass')) ->andWhere($qb->expr()->eq('n.relatedEntityId', ':relatedEntityId')) + ->andWhere($qb->expr()->isNotNull('n.sender')) ->andWhere( $qb->expr()->orX( $qb->expr()->isMemberOf(':user', 'n.addressees'),