hi

in my ContactForm.class.php -> configure() I have something like this:

if (!$this->isNew())
{
  // attach contact vitas
  foreach ($this->getObject()->getContactVitas() as $vita)
  {
    $vita_form = new ContactVitaForm($vita);
    $this->embedForm('vita_'.$vita->getId(), $vita_form);
  }
  $this->embedForm('vita', new ContactVitaForm());
}

in generate.yml I declare some basics fields and a patial
where I handle the embedded form:
form:
  display:
    "Basic data":       [ title, email, skype, telephone, image ]
    "Curriculum vitae": [ _fieldset_contact_vita ]

In the partial _fieldset_contact_vita I retrieve the embedded form
by $form->getEmbeddedForms(), which returns nothing now that
I upgraded to 1.2.6. Of course it worked well in 1.2.5
It seems that the embedded forms get unset by the new security fix.

Is there a way to prevent their removal without touching the core.
Or could my way of embedding forms handled some other way?

regards, chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to