Hi

While trying to create dynamic subforms with the Form component I
struggled a bit with the documentation.

In Symfony/Component/Form/CollectionField.php the class documentation
gives the following example usage:
*     $form->add(new CollectionField(new TextField('emails')));

As far as I understand the code I believe it should be:
*     $form->add(new CollectionField('emails', array('prototype' =>
new TextField()));

Can anyone confirm if I'm right, or if I misunderstood something?

Best regards,
Michel

--
Michel Weimerskirch,
Web application developer
http://michel.weimerskirch.net

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to