Hello all,
setDataClass in form class accept a class but it no following doctrine's
relationships.
I have try to set two Class with setDataClass , not work because Form accept
only one class whith this method.
I have try to do two form's Class, one by Entities' Class, for bind with
request :
$form1=Form1::create($this->container->get('form.context'),Form1::$name);
$form1->bind($this->get('request'), $myEntity);
$form2=Form2::create($this->container->get('form.context'),Form2::$name);
$form2->bind($this->get('request'), $myEntity);
last line fail because $myEntity have the same Class than $form1 but $form2
is another class, it's logic.
So, I have to create one object/Form by entity without relations and
"persist" one by one.
I would like to know if it's planned to add relations between class or
follow doctrine's relation in the Fields Automatics ?
I know that the Form Component is refactoring.
Thanks !
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" 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-devs?hl=en