Le 12/05/2015 12:14, Kevin Porter a écrit :
I had actually reported the wrong error. The 'user_class' entry in config.yml wasn't pointing to my own FosUser entity at the time. But when I do point it at my FosUser entity I was getting lots of errors about duplicate fields and wrong access levels to fields. I think the problems had arisen when generating FOS user entity from the command line. It had added code to some files resulting in these errors. (I had followed tutorials closely)

I got it working by removing src/FOS/ (not sure if that's advisable), and extending my FosUser entity from FOS\UserBundle\Model\User directly (rather than FOS\UserBundle\Entity\User).


The entity generator does not always play well with inheritance. You should remove any duplicated code from your generated entity to avoid duplicating the FOSUserBundle code.

Btw, the FOSUserBundle code does not talk about generating the child entity, precisely because of this issue.

--
Christophe | Stof

--
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to