Hi Pento
> Thanks for fast answer.
No worries, happy to help if I can.
>> var $primaryKey = "user_id";
>
> I know about this...But as you can see I have in SQL table Multicolumn
> primary key, so
> $primaryKey must be something like array("user_id", "date");
> Can CakePHP correctly work with multicolumn primary key in Model?
> As I think, to force changes in database structure because of used
> framework is not good...
My understanding is that Cake 1.1.x.x doesn't support multi-column keys.
This feature request in track: https://trac.cakephp.org/ticket/1293
indicates that the priority for this feature is very low and unlikely to
be implemented.
Are you working with a legacy database? Or is this your preferred way
of building the primary key?
Bottom line seems to be that you will need to modify the table if you
want Cake to work with it. It may be annoying, but then if you do make
the change you get all of the great benefits of Cake and its ability to
work with models.
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
-~----------~----~----~----~------~----~------~--~---