Exception detected!

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

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/Website/SpanishBundle/Controller/ToursController.php at line 157  -
    1.         $testimonios $em->getRepository('DatosBundle:Testimonio')->listarTodosTestimonios();
    2.         // Recogemos la foto de portada
    3.         $tportada $em->getRepository('DatosBundle:Fotogaleria')->portadaGaleria($programa->getIdgaleria());
    4.         $tportada $tportada->getIdfoto()->getUrl();
    5.         if ($programa) {

Logs  -

Stack Trace (Plain Text)  +