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
-
in src/AppBundle/Entity/ArticleManager.php at line 159
$this->em->flush();
}
public function getArticlePdf(Articles $article)
{
$pdfs = $this->em->getRepository('AppBundle:ArticlePdf')->findBy(
array('article' => $article)
-
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 -
at
ArticleManager
->getArticlePdf
(null)
in src/AppBundle/Controller/BlogController.php at line 79 - at BlogController ->getArticleAction ('Lettre+aux+indivisaires+%252F+Ma%25C3%25AEtre+Monique+Legrand+le+07+juin+2016')
-
at
call_user_func_array
(array(object(BlogController), 'getArticleAction'), array('Lettre+aux+indivisaires+%252F+Ma%25C3%25AEtre+Monique+Legrand+le+07+juin+2016'))
in app/bootstrap.php.cache at line 3094 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3056 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3207 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2429 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 28