Hi,
Sorry I'm still being fairly new to cake and I have the follwing
problem:
I'm mass updating some data and use the following code for that
$this->Model->findByName("name");
$this->Model->save($data);
when I do that cake is inserting a new record with $data instead of
updating the existing one. I guess this is because it doesn't set
Model->id after the find operation.
Is there any reason why this is not being set?
Do I not understand how this is supposed to be done?
thanks for your help
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---