Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function hasRole() on null in /var/www/html/papyhappy/releases/40/src/Px/InstitutionBundle/Form/CommentType.php:28 Stack trace: #0 /var/www/html/papyhappy/shared/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php(187): Px\InstitutionBundle\Form\CommentType->buildForm(Object(Symfony\Component\Form\FormBuilder), Array) #1 /var/www/html/papyhappy/shared/vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php(111): Symfony\Component\Form\ResolvedFormType->buildForm(Object(Symfony\Component\Form\FormBuilder), Array) #2 /var/www/html/papyhappy/shared/vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php(84): Symfony\Component\Form\FormFactory->createNamedBuilder('comment', Object(Symfony\Component\Form\ResolvedFormType), Object(Px\InstitutionBundle\Entity\Comment), Array) #3 /var/www/html/papyhappy/shared/vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php(33): Symfony\Component\F in /var/www/html/papyhappy/releases/40/src/Px/InstitutionBundle/Form/CommentType.php on line 28