Fatal error: Call to a member function getId() on a non-object in /var/www/vhosts/umpflows.com/src/Ump/FlowsBundle/Controller/DefaultController.php on line 57

Fatal error: Uncaught exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Error: Call to a member function getId() on a non-object' in /var/www/vhosts/umpflows.com/src/Ump/FlowsBundle/Controller/DefaultController.php:57 Stack trace: #0 {main} Next exception 'Twig_Error_Loader' with message 'Unable to find template "base.html.twig" (looked into: /var/www/vhosts/umpflows.com/app/Resources/views, /var/www/vhosts/umpflows.com/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form, /var/www/vhosts/umpflows.com/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/vhosts/umpflows.com/app/cache/prod).' in /var/www/vhosts/umpflows.com/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:232 Stack trace: #0 /var/www/vhosts/umpflows.com/vendor/liip/theme-bundle/Twig/Loader/FilesystemLoader.php(83): Twig_Loader_Filesystem->findTemplate('base.html.twig') #1 /var/www/vhosts/umpflows.com/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(150): Liip\ThemeBundle\Twig\Loader\FilesystemLoader->fin in /var/www/vhosts/umpflows.com/vendor/liip/theme-bundle/Twig/Loader/FilesystemLoader.php on line 91