I think you should create a separate form for Address entity and embed
it in the user form, see
http://symfony.com/doc/current/book/forms.html#embedded-forms
On 16 juin, 19:31, Aaron DM amai...@gmail.com wrote:
Hello,
I was wondering how I would accomplish this.
I want to create a single FormType for the entity User with has an
association mapping Address (OneToOne).
How exactly do I create the form fields for the information in the
associated Address Entity?
Example entities:https://gist.github.com/8a5b071fa6c9cbda4ae7
I basically want a single form where I get the options to edit:
- Name
- Postal Code
Do I create a separate form for my Address entity or is there another way to
do it?
Thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en