/**
  * Mark all Notifications as sent long ago, as the recipient never want's to get any notifications.
  * @param RecipientInterface $recipient
  */
 protected function markAllNotificationsAsSentFarInThePast(RecipientInterface $recipient)
 {
     $qb = $this->em->createQueryBuilder()->update("Azine\\EmailBundle\\Entity\\Notification", "n")->set("n.sent", ":farInThePast")->andWhere("n.sent is null")->andWhere("n.recipient_id = :recipientId")->setParameter('recipientId', $recipient->getId())->setParameter('farInThePast', new \DateTime('1900-01-01'));
     $qb->getQuery()->execute();
 }
 /**
  * Mark all Notifications as sent long ago, as the recipient never want's to get any notifications.
  * @param RecipientInterface $recipient
  */
 protected function markAllNotificationsAsSentFarInThePast(RecipientInterface $recipient)
 {
     $this->getNotificationRepository()->markAllNotificationsAsSentFarInThePast($recipient->getId());
 }