Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getSlug() on null in /var/www/application/src/AppBundle/Services/CategoryService.php:58 Stack trace: #0 /var/www/application/src/AppBundle/Model/Category/CategoryModel.php(465): AppBundle\Services\CategoryService::categoryToAutocompleteData(Array, 1) #1 /var/www/application/src/AppBundle/Model/RouterModel.php(287): AppBundle\Model\Category\CategoryModel->getCategoryTemplate(Object(ContainerSk4sx4m\appProdProjectContainer), Object(Nelmio\SolariumBundle\ClientRegistry), Object(Symfony\Component\HttpFoundation\Request), 'prislusenstvo-p...') #2 /var/www/application/src/AppBundle/Controller/DefaultController.php(191): AppBundle\Model\RouterModel->getTemplate(Object(AppKernel), Object(Nelmio\SolariumBundle\ClientRegistry), Object(ContainerSk4sx4m\appProdProjectContainer), Object(Symfony\Component\HttpFoundation\Request)) #3 /var/www/application/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(151): AppBu in /var/www/application/src/AppBundle/Services/CategoryService.php on line 58