/** * @param Notification $notification */ public function seeNotification(Notification $notification) { $notification->setSeen(1); $this->_em->persist($notification); $this->_em->flush(); }
/** * @param Notification $notification */ public function seeNotification(Notification $notification) { $notification->setSeen(1); $this->_em->persist($notification); $this->_em->flush(); }