somebody?

2009/12/17 Abraham <amontil...@gmail.com>

> Hello people... i'm having troubles with bind function ... there's a
> form i've embedded called Tercero, that subform has to have the id of
> the main form, but as i'm creating a new main form, there's no main id
> yet. So i go to the bind function and code this
>
> bind(){
> ...
>    $t = new Tercero();
>    $t->setArray($taintedValues["Tercero"]);
>    $t->setSiniestro($this->getObject());
>    $this->embedForm('Terc', new TerceroForm($t));
> ...
> }
>
> But after clicking "save" the Terc subform appears empty (the Terc
> form has many of its fields with errors like "required." instead of
> grabbing things from 'Tercero' subform) :S so i think that the "$t-
> >setArray($taintedValues["Tercero"]);" line is not working, but that
> method worked for me before in a similar situation. What can i do?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>


-- 
Have a nice day.
Abraham Montilla.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to