Fatal error: Call to a member function getCatId() on a non-object in /data/home/hlu019050/htdocs/src/Cms/CompanyBundle/Controller/ArticleController.php on line 328 Error: Call to a member function getCatId() on a non-object (500 Internal Server Error)
Exception detected!

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

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/Cms/CompanyBundle/Controller/ArticleController.php at line 328  -
    1.         //aritcle catname
    2.         $cat $this->getDoctrine()
    3.             ->getRepository('CmsAdminBundle:Category')->findOneBy(array('catId'=>$article->getCatId()));
    4.         //show by year
    5.         $conn $this->get('database_connection');

Logs  -

Stack Trace (Plain Text)  +