문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top