Call to a member function setPresentacion() on null
500 Internal Server Error - FatalThrowableError
Stack Trace
-
in src/Sitio/ProductoBundle/Controller/DefaultController.php at line 47
->findOneBy( array('Id' => $id));
if($this->getRequest()->getLocale() == 'en') {
$product->setPresentacion(str_replace('Piezas', 'Pieces', $product->getPresentacion()));
}
$products = $this->getDoctrine()
-
at
DefaultController
->detallesAction
('Nuevos', '87')
in app/bootstrap.php.cache at line 3276 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3235 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3389 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2594 -
at
Kernel
->handle
(object(Request))
in public_html/app.php at line 53