3 namespace Wallabag\CoreBundle\Repository
;
5 use Doctrine\ORM\EntityRepository
;
7 class NotificationRepository
extends EntityRepository
{
9 public function markAllAsReadForUser($userId) {
10 return $this->getEntityManager()->createQueryBuilder()
11 ->update('WallabagCoreBundle:Notification', 'n')
13 ->where('n.user = :userId')->setParameter('userId', $userId)