No, binding the request values to the main form and calling save should save everything for you. It works for me. hmm.
- Jon On Wed, Oct 29, 2008 at 4:19 PM, kayoone <[EMAIL PROTECTED]> wrote: > > thank you, but i figured that out already. In the posts above they > said to look at the sfGuard Forms to get a hang of form embedding, its > just that i cant find anything... > > I got my embedded profile form together with the sfGuardForm, but when > processing and calling $this->form->save() only the main form gets > saved...i dont get why. > The embedded form is validated and the data is present in the object, > it just doesnt get saved. > > I have seen approaches here to manually bind the values to the > embedded form object, and save the embedded form by itself, is that > really the only way to do it ? > The Mainform has all the data from both forms, validated and good to > go, and then i should create another instance of the embedded form and > bind the values to it again only to be able to manually call its > save() method ? > > That doesnt sound very consistent to me...why cant the mainform save > the emebedded form ? It has all relations and data it neeeds... > > thx in advance > > > -- Jonathan H. Wage Open Source Software Developer & Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
