Fatal error: Call to a member function getType() on a non-object in /var/www/html/src/Swat/Bundle/Controller/DefaultController.php on line 286