I'm still a Symfony newbie. I'm using the "generate-module" call to
create a form for my model and that's working fine. However I want to
manually override some of the values from the form submission, to
process them a bit on the backend before saving them.

What is the best way to do this? Before $form->bind()? After? How?

The only way I've found so far to do this is to wait until the
$myModel = $form->save() call and then change values on $myModel and
save again. But this means two saves, which clearly isn't efficient.
I'm sure there's another way to do this...but how?

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 users" group.
To post to this group, send email to symfony-users@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