There is no support for composite keys in CakePHP.
Add an 'id' column to your table.

On Dec 5, 3:34 pm, Sabinas <[EMAIL PROTECTED]> wrote:
> Hi, I dont speak englis very well but I will try. Mi problem is:
>
> I have a table but this table have a primary key with two columns, an
> example:
>
> sucursal     folio
> 1                 1
> 2                 1
> 1                 2
> 2                 2
>
> joining two columns we obtain the primary key.... i don know how to
> make the relation in the model... somebody help me please.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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