Fatal error: Call to a member function getId() on null in /homepages/19/d153220160/htdocs/src/LyceeBundle/Controller/DefaultController.php on line 212
Error: Call to a member function getId() on null (500 Internal Server Error)
Exception detected!

Error: Call to a member function getId() on null

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/LyceeBundle/Controller/DefaultController.php at line 212  -
    1.         $Actualite $this->getDoctrine()->getRepository("LyceeBundle:Actualite")->findOneBySlug($id);
    2.         $galeries $this->getDoctrine()->getRepository("LyceeBundle:Galerie")->findAll();
    3.         $partenaire=$this->getDoctrine()->getRepository("LyceeBundle:Partenaire")->findAll();
    4.         $nombreviusiteQuery$em->createQuery('SELECT COUNT(a.actualitev) as nombrevisite FROM LyceeBundle:Visite a WHERE a.actualitev=:actualitev')->setParameter('actualitev',$Actualite->getId());
    5.         $nombreviusite=$nombreviusiteQuery->getOneOrNullResult();
    6.         $em $this->getDoctrine()->getManager();
    7.         $queryB $em->createQuery(

Logs  -

Stack Trace (Plain Text)  +