public function markAsUnSeenAction($notifiable, $notification)
    {
        $manager = $this->get('mgilet.notification');
        $manager->markAsUnseen(
            $manager->getNotifiableInterface($manager->getNotifiableEntityById($notifiable)),
            $manager->getNotification($notification),
            true
        );

        return new JsonResponse(true);
    }
public function markAsUnSeenAction($notifiable, $notification)
    {
        $manager = $this->get('mgilet.notification');
        $manager->markAsUnseen(
            $manager->getNotifiableInterface($manager->getNotifiableEntityById($notifiable)),
            $manager->getNotification($notification),
            true
        );

        return new JsonResponse(true);
    }
public function markAsUnSeenAction ( $ notifiable , $ notification ) { $ manager = $ this -> get ( 'mgilet.notification' ) ; $ manager -> markAsUnseen ( $ manager -> getNotifiableInterface ( $ manager -> getNotifiableEntityById ( $ notifiable ) ) , $ manager -> getNotification ( $ notification ) , true ) ; return new JsonResponse ( true ) ; }
Set a Notification as unseen

@Route("/{notifiable}/mark_as_unseen/{notification}", name="notification_mark_as_unseen")
@Method("POST")
@param $notifiable
@param $notification

@return JsonResponse
@throws \RuntimeException
@throws \InvalidArgumentException
@throws \Doctrine\ORM\OptimisticLockException
@throws \Doctrine\ORM\NonUniqueResultException
@throws \Doctrine\ORM\EntityNotFoundException
@throws \LogicException
Set a Notification as unseen