add new property in fosuserbundle and sonatauser
-
27-10-2019 - |
문제
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
.
제휴하지 않습니다 StackOverflow