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