> The create function will look for an id passed in the $this->data for
> the model. If it sees one, it understands the save should perform an
> update, if there is no id, it understands the save as an insert.

That should be 'if it sees one, and a record with that PK exists, it
understands the save should perform an update; if there is no id [or
it is null] or the record does not exist, it understands the save as
an insert."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to