I have generated an action using doctrine:generate-module (I can
reproduce this behavior in the admin module as well)

When I post to the update page with an incomplete set of values (just
the title for instance) so:
/api_dev.php/event/update?id=1&event[title]=nothing
The object is updated and saves correctly, but all the other values in
the object (except title in this instance) get nulled.

This is easy to test by building the module and then removing one form
element that has saved data in it from the page and then saving the
form.  When saving that form without that form element, it gets
nulled. I would assume that I am somehow building the form or binding
it incorrectly, but I am using the generated code.  Is this expected
behavior? How do I change this so that I can just update the existing
object without having to pass all values every time?

-- 
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