Hi Pento Pento wrote: > For example, we have table > user_id | text | date > ------------------------------ > 1 | foo | 2007-02-27 > > Primary key is (user_id, date)
You either need to change the column name from user_id to id, or specify the $primaryKey variable in your model to use "user_id". This will force Cake to over-ride the default which is "id". So in your UserModel add: var $primaryKey = "user_id"; Regards, Langdon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
