开发者

"Edit profile" form is not populated using FOSUserBundle

开发者 https://www.devze.com 2023-04-08 01:16 出处:网络
I have User entity with properties like name, address, and I want these fields to be editable on \"edit profile\" page. Sounds easy, but I couldn\'t make it work following official documentation. My f

I have User entity with properties like name, address, and I want these fields to be editable on "edit profile" page. Sounds easy, but I couldn't make it work following official documentation. My form is not populated with the User data, though I ha开发者_开发百科ve configured services (form type, form handler).

I suppose that it might be because $this->form->getData() should get CheckPassword object, but I pass User entity to it (function process() in ProfileFormHandler.php). Or not ?

How to populate form with User data?

All related files are here - http://www.pastie.org/2604806

0

精彩评论

暂无评论...
验证码 换一张
取 消