Call to a member function getDateClose() on null
500 Internal Server Error - FatalThrowableError
Stack Trace
-
in src/AppBundle/Controller/AwardController.php at line 118
{
$award = $this->getDoctrine()->getManager()->getRepository(Award::class)->findOneBy(['canonical' => $name]);
$otherAwards = $this->getDoctrine()->getManager()->getRepository(Award::class)
->findByYear($award->getDateClose()->format("Y"), 1);
$currentRound = $this->get('app.util.award_round')->getCurrentRound();
if ($currentRound === 5) {
- at AwardController ->index ('mc_music_award_-_best_italian_whistler', object(Request))
-
at
call_user_func_array
(array(object(AwardController), 'index'), array('mc_music_award_-_best_italian_whistler', object(Request)))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 153 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 68 -
at
HttpKernel
->handle
(object(Request), '1', true)
in var/bootstrap.php.cache at line 1447 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 29