Question

i try to add new property i read this guide https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/overriding_forms.md Overriding Default FOSUserBundle Forms

all are good only return to me this error Neither property "name" nor method "getName()" nor method "isName()" exists in class "Application\Sonata\UserBundle\Entity\User"

probably Sonata not read the new property

how i can resolve? thx

Was it helpful?

Solution

Make sure that Application\Sonata\UserBundle\Entity\User class extends your bundle's user class, but not FOS\UserBundle\Entity\User.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top