I though that I understood how Nodel::save works but I am unable to
get an update to work.
class User extends AppModel
{
var $name = 'User';
var $primaryKey = 'recordID';
}
In a controller I have this:
$this->User->recordID = $userID;
$this->User->save($this->data['User'], true, array());
where $userID has been assigned previously assigned to a valid record
ID.
This code produces an INSERT instead of an UPDATE.
What am I doing wrong?
Peter -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---