Only the main form is bound.
All the bound data are in the main form. The embeddedForm forms are
there mainly for internal stuff like cascade saving. What is your need?
Fabien
--
Fabien Potencier
Sensio CEO - symfony lead developer
sensiolabs.com | symfony-project.com | aide-de-camp.org
Tél: +33 1 40 99 80 80
Ian wrote:
> I have have FooForm extends sfForm, configured like so:
>
> class FooForm extends sfForm
> {
> public function configure()
> {
> $labels = array();
> $schema = new sfWidgetFormSchema();
> $validators = new sfValidatorSchema();
>
> $this->setWidgetSchema($schema);
> $this->widgetSchema->setNameFormat('foo[%s]');
> $this->setValidatorSchema($validators);
>
> $this->embedForm('bar', new BarForm());
> }
> }
>
> The form loads properly, and when I POST the form, I call:
>
> $form = new FooForm();
> $form->bind($this->getRequestParameter('foo'), $this->getRequest()-
>> getFiles('foo'));
>
> Now, I'd assume that the embedded form should also be bound, its not:
>
> $form->embeddedForms['bar']->isBound() // false
>
> Am I doing sometihng wrong, or is there a bug?
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---