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