Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getId() on null in /var/www/vhosts/ghigoroli.com/httpdocs/src/Controller/ControllerDemo.php:894 Stack trace: #0 /var/www/vhosts/ghigoroli.com/httpdocs/vendor/symfony/http-kernel/HttpKernel.php(151): App\Controller\ControllerDemo->dettaglioAction(Object(Symfony\Component\HttpFoundation\Request), Object(Symfony\Bridge\Monolog\Logger), '95', 'brescia-pinacot...', '213444') #1 /var/www/vhosts/ghigoroli.com/httpdocs/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #2 /var/www/vhosts/ghigoroli.com/httpdocs/vendor/symfony/http-kernel/Kernel.php(200): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #3 /var/www/vhosts/ghigoroli.com/httpdocs/public/index.php(37): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #4 {main} Next I in /var/www/vhosts/ghigoroli.com/httpdocs/vendor/symfony/http-kernel/Controller/ControllerResolver.php on line 180