Exception detected!

Catchable Fatal Error: Argument 1 passed to AppBundle\Entity\ArticleManager::getArticlePdf() must be an instance of AppBundle\Entity\Articles, null given, called in /home/aiclmfrsqb/www/src/AppBundle/Controller/BlogController.php on line 79 and defined

500 Internal Server Error - ContextErrorException

Stack Trace

  1. in src/AppBundle/Entity/ArticleManager.php at line 159  -
    1.         $this->em->flush();
    2.     }
    3.     public function getArticlePdf(Articles $article)
    4.     {
    5.         $pdfs $this->em->getRepository('AppBundle:ArticlePdf')->findBy(
    6.             array('article' => $article)
  2. at ErrorHandler ->handleError ('4096', 'Argument 1 passed to AppBundle\Entity\ArticleManager::getArticlePdf() must be an instance of AppBundle\Entity\Articles, null given, called in /home/aiclmfrsqb/www/src/AppBundle/Controller/BlogController.php on line 79 and defined', '/home/aiclmfrsqb/www/src/AppBundle/Entity/ArticleManager.php', '159', array())
    in src/AppBundle/Entity/ArticleManager.php at line 159  +
  3. at ArticleManager ->getArticlePdf (null)
    in src/AppBundle/Controller/BlogController.php at line 79  +
  4. at BlogController ->getArticleAction ('NOTE+N%25C2%25B0+29+A+I+C+L+M')
  5. at call_user_func_array (array(object(BlogController), 'getArticleAction'), array('NOTE+N%25C2%25B0+29+A+I+C+L+M'))
    in app/bootstrap.php.cache at line 3094  +
  6. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3056  +
  7. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3207  +
  8. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2429  +
  9. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +