Exception detected!

Error: Call to a member function getNombre() on a non-object

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/AppBundle/Controller/DefaultController.php at line 402  -
    1.             $filter $request->query->get('buscar');
    2.             $grupo $em->getRepository('AppBundle:Vclasificacion')->findOneByNombre($filter);
    3.             $where "t.iteId IN (SELECT t1.iteIteId FROM AppBundle:Vitemgrupo t1 WHERE t1.linea = '$filter') "
    4.             $datos["titulo"] = $grupo->getNombre();
    5.             $tipoContenido $em->getRepository('AppBundle:Tipocontenido')->findByGruGruId($grupo->getGruId());
    6.             $datos["tc"] = $tipoContenido $tipoContenido[0]->getTcId() : 0;                
    7.             $session->set("mActive",$datos["tc"]); //su contenido     

Logs  -

Stack Trace (Plain Text)  +