Call to a member function getBuy() on null
500 Internal Server Error - FatalThrowableError
Stack Trace
-
in src/SiteBundle/Controller/PageController.php at line 200
'currencyTo' => $currencyTo->getId()
));
if(empty($currencyItem->getBuy())){
$buy = MainHelper::recalculateRate($currencyItem, $currencyItem->getMarkUpFrom(), 'Buy', $this->getDoctrine()->getEntityManager());
$currencyItem->setBuy(sprintf('%.3F',$buy));
}
- at PageController ->currencyDetailAction ('usd-rub')
-
at
call_user_func_array
(array(object(PageController), 'currencyDetailAction'), array('usd-rub'))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 144 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 64 -
at
HttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 69 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 1505 -
at
Kernel
->handle
(object(Request))
in www/app.php at line 16