Exceptions
Call to a member function getActionVideo() on null
500 Internal Server Error - FatalThrowableError
Stack Trace
-
in src/DemoBakery/MainV2Bundle/Controller/ViewerController.php at line 60
}
$place = $this->getDoctrine()->getRepository('DemoBakeryMainBundle:Place')->findOneBy(['slug' => $slug, 'published' => true, 'city' => $city]);
$actionVideo = $place->getActionVideo();
if (!$place || !$actionVideo) {
throw new NotFoundHttpException();
-
at
ViewerController
->actionVideoAction
(object(City), 'new-year-2017', 'w')
in app/bootstrap.php.cache at line 3275 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3234 -
at
HttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 67 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2594 -
at
Kernel
->handle
(object(Request))
in web/app_dev.php at line 30