Fatal error: Call to a member function getTags() on null in /home/apcefrs/public_html/src/AppBundle/Controller/NoticiasController.php on line 51
Error: Call to a member function getTags() on null (500 Internal Server Error)

Symfony Exception

FatalErrorException

HTTP 500 Internal Server Error

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

Exception

Symfony\Component\Debug\Exception\ FatalErrorException

  1.     {
  2.         $newsModel = new News();
  3.         $news $newsModel->getArticle($em$id);
  4.         return $this->render('noticias/article.html.twig', [
  5.             'article' => $news,
  6.             'tags' => $newsModel->getArticleTags($em$news->getTags()),
  7.             'lastNews' => $newsModel->getNoticias($em05)
  8.         ]);
  9.     }
  10.     /**

Logs

No log messages

Stack Trace

FatalErrorException

Symfony\Component\Debug\Exception\FatalErrorException:
Error: Call to a member function getTags() on null

  at src/AppBundle/Controller/NoticiasController.php:51