Re: [symfony-users] unsing unsetAllFieldsExcept to unset a field of an embeded form

2010-03-19 Thread Alexandru-Emil Lupu
in your form2 class add a function unsetAllFieldsExcept and then replace: $this->unsetAllExcept(array( 'name','email' , 'form2[books]' ) ); to : $this->unsetAllExcept(array( 'name','email' ) ); if ($this->getEmbededForm('form2') instanceof form2Form ) { $this->getEmbededForm('form2')->unsetA

[symfony-users] unsing unsetAllFieldsExcept to unset a field of an embeded form

2010-03-19 Thread Belgacem TLILI
Hello for all Sf dev, i'm using the function unsetAllFieldsExcept to get a form in 2 steps like this exemple http://www.iw2.fr/2009/08/28/symfony-formulaire-en-plusieurs-etapes/ my problem is : i would like to unset a fields for an embed form i call the unsetAllFieldsExcept function here to uns