Hi Stefan,
Unfortunately neither save() nor doSave() is executed in nested forms.
You can intercept bind() in MemberForm though to pass the variables to
the nested form:
MemberForm
{
bind()
{
parent::bind();
if ($this->isValid())
{
$this->billingForm->setFirstName($this->values['first_name']);
$this->billingForm->setLastName($this->values['last_name']);
}
}
}
Bernhard
--
Software Architect & Engineer
Blog: http://webmozarts.com
2009/9/5 stefan <[email protected]>:
>
> I try to customize a save method of an embedded doctrine form. In
> fact, I want to copy some values from the parent form.
> MemberForm embeds BillingForm. and I want first_name and last_name
> from billing table to be automatically inserted from the MemberForm
> fields. I tried some code (even the die() statement) in the save() or
> doSave() for the BillingForm, but it seems the execution doesn't go
> there.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---