Fatal error: Call to a member function getAutor() on a non-object in /home/carmenthyssenmalaga/tecknosfera/public_html/src/ThyssenMalaga/WebBundle/Controller/ColeccionController.php on line 200
Error: Call to a member function getAutor() on a non-object (500 Internal Server Error)
Exception detected!

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

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/ThyssenMalaga/WebBundle/Controller/ColeccionController.php at line 200  -
    1.         $_em $this->getDoctrine()->getManager();
    2.         $obra $_em->getRepository('ThyssenMalagaWebBundle:Obra')->findOneBy(array('slug' => $slug));
    3.         $obras_autor $_em->getRepository('ThyssenMalagaWebBundle:Obra')->findBy(array('autor' => $obra->getAutor()->getId()), array('orden' => 'ASC' ), 3);
    4.         if(!$obra)
    5.         {

Logs  -

Stack Trace (Plain Text)  +