Fatal error: Call to a member function getId() on a non-object in /data/home/hlu019050/htdocs/src/Cms/CompanyBundle/Controller/ProfessorController.php on line 310 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/Cms/CompanyBundle/Controller/ProfessorController.php at line 310  -
    1.         //print_r($professors);exit;
    2.         
    3.         $pid $professor->getId();
    4.         $conn $this->get('database_connection');
    5.         $pcat $conn->fetchAll("select pcid from profecat where pid = $pid");

Logs  -

Stack Trace (Plain Text)  +