Fatal error: Call to a member function getId() on a non-object in /home/nathaliepadron/public_html/ddp/src/ddp/clientBundle/Controller/DefaultController.php on line 308
Error: Call to a member function getId() on a non-object (500 Internal Server Error)
Exception detected!

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

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/ddp/clientBundle/Controller/DefaultController.php at line 308  -
    1.         $resumenPost $em->getRepository('ddpBundle:Clientes')->findResumenPost();
    2.         $comentariosPst $em->getRepository('ddpBundle:Clientes')->findComentariosByClienteid($cliente->getId());
    3.         $comentario = new ComentariosPost();
    4.         $form $this->createForm('ddp\ddpBundle\Form\ComentariosPostType'$comentario);
    5.         $form->handleRequest($request);

Logs  -

Stack Trace (Plain Text)  +