Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getId() on null in /home/corsusa/public_html/staffcorsusa/src/WebBundle/Controller/DefaultController.php:656
Stack trace:
#0 /home/corsusa/public_html/staffcorsusa/src/WebBundle/Controller/DefaultController.php(337): WebBundle\Controller\DefaultController->getProductosByMarcaCategoria(Object(AdminBundle\Entity\Marcas), NULL)
#1 [internal function]: WebBundle\Controller\DefaultController->marcaAction('hmt', '')
#2 /home/corsusa/public_html/staffcorsusa/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(144): call_user_func_array(Array, Array)
#3 /home/corsusa/public_html/staffcorsusa/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#4 /home/corsusa/public_html/staffcorsusa/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.p in /home/corsusa/public_html/staffcorsusa/src/WebBundle/Controller/DefaultController.php on line 656