Closed ahmed-sammari closed 7 years ago
Remove "abstract" from your class definition
Thanks for the reply, but when i remove it give me another problem
Entity 'UserBundle\Entity\User' has to be part of the discriminator map of 'UserBundle\Entity\User' to be properly mapped in the inheritance hierarchy. Alternatively you can make 'UserBundle\Entity\User' an abstract class to avoid this exception from occurring.
public static function mappedClassNotPartOfDiscriminatorMap($className, $rootClassName)
{
return new self(
"Entity '" . $className . "' has to be part of the discriminator map of '" . $rootClassName . "' " .
"to be properly mapped in the inheritance hierarchy. Alternatively you can make '".$className."' an abstract class " .
"to avoid this exception from occurring."
Se, make Use part of the discriminator map
Thank you so much. This step has solved a big problem. 👍
I think if they change it in documentation. 😉
hello everybody, I tried to install PUGXMultiUserBundle, FOSUserBundle and VichUploaderBundle, now as I did all steps.
Entity Class
Image Class
My Error:
Error: Cannot instantiate abstract class UserBundle\Entity\User
any help