For example, we have table
user_id | text | date
------------------------------
1          | foo  | 2007-02-27

Primary key is (user_id, date)
So, how can I use Model::save() in these cases? If I simply use is I
always get "insert" query and SQL error because of Primary key.
Now I see only one solution:
Tries to search already exists rows in table before Model::save() is
called.
And if such row is already exists => Model::saveField
else Model::save()
?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to