On Nov 2, 1:43 pm, maxpo <[EMAIL PROTECTED]> wrote:
> My table has primary key made up of two primary keys.
> Now when i call save it gives me the error of duplicate record, since
> there is no column in table named id and the two id keys are :
>
> student_id, assessment_id.
>
> What i want from cake is to perform save operation based on these two
> keys instead of the id field in table. (Since cake searches for the id
> key if it is present then updates other wise simply inserts they
> value)

Add a single primary key field and your problem magically and
mysteriously disappears.

AD


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