Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Return value of APC\CoachCopro\UserBundle\Entity\User::getAffiliate() must be of the type string, null returned in /app/src/APC/CoachCopro/UserBundle/Entity/User.php:1422 Stack trace: #0 /app/vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php(450): APC\CoachCopro\UserBundle\Entity\User->getAffiliate() #1 /app/vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php(373): Symfony\Component\PropertyAccess\PropertyAccessor->readProperty(Array, 'affiliate') #2 /app/vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php(133): Symfony\Component\PropertyAccess\PropertyAccessor->readPropertiesUntil(Array, Object(Symfony\Component\PropertyAccess\PropertyPath), 1, true) #3 /app/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php(49): Symfony\Component\PropertyAccess\PropertyAccessor->getValue(Object(APC\CoachCopro\UserB in /app/src/APC/CoachCopro/UserBundle/Entity/User.php on line 1422