Hi, I hope to have understood you.

If you want to set a custom form's name you should use:

$this->get('form.factory')->createNamedBuilder(AbstractType $type, string
$name, VendorBundle\Entity\YourEntity $data, $options=null);

That is self explanatory.

Regards!
2011/6/20 Michael Holm Kristensen <ho...@hollo.dk>

> Hi,
>
> I have a suggestion for the form framework that would help me a lot...
> I would love to have a form called:
>
> form1[value]
>
> and
>
> form2[value]
>
> i have checked the form factory, and it seems to be possible..
>
> the problem i have right now i that i have a row of objects that i
> want to change in the same form, so what i was trying to do was:
>
> build an array of forms, and print all the forms on the page..
>
> and when i had to validate the values, i wanted to loop the forms, and
> build the http request to each of the forms, and when i have a valid
> value, persist my object..
>
> That would make it possible to render a form on a row of objects...
> and suggestions or feedback on this?
>
> best regards,
> michael holm
>
> --
> 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 developers" group.
> To post to this group, send email to symfony-devs@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-devs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>

-- 
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 developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to