bindAndSave() is a life saver, it returns true if the form validates
and if the data is saved into the database, take a look at
http://www.symfony-project.org/forms/1_2/en/04-Propel-Integration for
more information, that tutorial is terrific. The downside however is
that it returns a boolean, and not the object that was saved. I think
I'm going to have to fall back and use the save() method instead of
bindAndSave(), because if I need to get the object data back that was
saved, I'll have to run a query getting the most recently created
object. This is no big deal for a small application with few users,
but for a large application, many users could be saving to the
database simultaneously. They could be retrieving an object that was
saved at the same time their own was. A work around for that would be
to include a 'user_id' aspect into the query, but that would require a
user_id field in every table they can add / edit to. I wish bindAndSave
() returned the object and not a boolean.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---