Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getName() on null in /home/forge/chosenby.eu/src/AppBundle/Controller/ElasticProductController.php:171 Stack trace: #0 [internal function]: AppBundle\Controller\ElasticProductController->indexAction(Object(Symfony\Component\HttpFoundation\Request), Array, 'category', '') #1 /home/forge/chosenby.eu/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(153): call_user_func_array(Array, Array) #2 /home/forge/chosenby.eu/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #3 /home/forge/chosenby.eu/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(202): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #4 /home/forge/chosenby.eu/web/app.php(27): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Compon in /home/forge/chosenby.eu/src/AppBundle/Controller/ElasticProductController.php on line 171