[symfony-users] Re: Doctrine+EmbededForms+Save

2010-06-21 Thread B.O.G
Happily i could do this: protected function processForm(sfWebRequest $request, sfForm $form) { //$form->bind($request->getParameter($form->getName()), $request- >getFiles($form->getName())); $campos = $request->getParameter($form->getName()); $campos['user_id'] = $this->getUser()->g

Re: [symfony-users] Re: Doctrine+EmbededForms+Save

2010-06-21 Thread jota
Maybe you can use hidden fields, but I think it can have security lacks, a user could modifie the values with firebug for example. The better solution would be, unset those fields in the form and override the save method of the model to autoset the values. To unset the fields in the form put this

[symfony-users] Re: Doctrine+EmbededForms+Save

2010-06-21 Thread B.O.G
I know now my errors: status : Required. user_id : Required. direccion_id : Required. correlativo : Required. fecha : Required. documento : Required. The thing is that this fields are set by the system, i mean, the user should not modify them, so i just show it like text. How can i pass them to