Hi John, When calling save the id should be part of the data. Setting it on the Model before saving does not work as you expect it to. Are you sure the id is in the data array?
/Martin On Sep 9, 12:34 pm, John Jackson <[EMAIL PROTECTED]> wrote: > Pretty sure the code I'm using should be causing the save() function > to do a MySQL update instead of insert: > > $this->User->id = 0; // static here for this example > $this->User->save($this->data); > > But this is resulting in an insert, according to the output from debug > level 2. What I'm trying to do is update a user's details for their > account, including name, email and password. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
