Hey there Michel-

Yes, I believe you're correct - the PHPDoc example appears to be out of
date. Can you open a pull request on symfony/symfony with an up-to-date
example?

Thanks!

Ryan Weaver
Lead Programmer - iostudio - Nashville, TN
http://www.iostudio.com
http://www.thatsquality.com
Twitter: @weaverryan


On Wed, Mar 2, 2011 at 4:58 AM, Michel Weimerskirch <[email protected]
> wrote:

> 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
>

-- 
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