public function listAction($notifiable)
    {
        $notifiableRepo = $this->get('doctrine.orm.entity_manager')->getRepository('MgiletNotificationBundle:NotifiableNotification');
        $notificationList = $notifiableRepo->findAllForNotifiableId($notifiable);
        return $this->render('@MgiletNotification/notifications.html.twig', array(
            'notificationList' => $notificationList,
            'notifiableNotifications' => $notificationList // deprecated: alias for backward compatibility only
        ));
    }
public function listAction($notifiable)
    {
        $notifiableRepo = $this->get('doctrine.orm.entity_manager')->getRepository('MgiletNotificationBundle:NotifiableNotification');
        $notificationList = $notifiableRepo->findAllForNotifiableId($notifiable);
        return $this->render('@MgiletNotification/notifications.html.twig', array(
            'notificationList' => $notificationList,
            'notifiableNotifications' => $notificationList // deprecated: alias for backward compatibility only
        ));
    }
public function listAction ( $ notifiable ) { $ notifiableRepo = $ this -> get ( 'doctrine.orm.entity_manager' ) -> getRepository ( 'MgiletNotificationBundle:NotifiableNotification' ) ; $ notificationList = $ notifiableRepo -> findAllForNotifiableId ( $ notifiable ) ; return $ this -> render ( '@MgiletNotification/notifications.html.twig' , array ( 'notificationList' => $ notificationList , 'notifiableNotifications' => $ notificationList // deprecated: alias for backward compatibility only ) ) ; }
List of all notifications

@Route("/{notifiable}", name="notification_list")
@Method("GET")
@param NotifiableInterface $notifiable

@return \Symfony\Component\HttpFoundation\Response
List of all notifications