[symfony-users] Re: i need help urgent

2010-03-11 Thread Belgacem TLILI
think you Eno, this does not help me i will explain my problem in a different why: i have 3 forms 1 - main form use a foreign key from form2 2- form2 3- form3 use a foreign key from main form so to save all the form in database we should 1= save object of form2 2= then save object of main form

Re: [symfony-users] Re: i need help urgent

2010-03-11 Thread Alexandru-Emil Lupu
Hmmmz i dunno exactly ... but: 1. you could merge the forms. 2. Override the save or saveEmbededForms method 3. Make sure that you are using the 3rd form ... the rest should be embeded... Form2 is embeded in Form1 which is embeded Form3 ... After just call new Form3(); Alecs On Thu, Mar 11,

[symfony-users] Re: i need help urgent

2010-03-11 Thread Belgacem TLILI
thank (not think) you Alexandru-Emil this is the solution i must override the saveEmbededForms method public function saveEmbeddedForms($con = null, $forms = null) { if (null === $con) { $con = $this-getConnection(); }