开发者

"Edit profile" form is not populated using FOSUserBundle

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜