Friday, December 5, 2008

Re: Problem with foreignKey in cake PHP

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

On Dec 5, 3:34 pm, Sabinas <orion.cent...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: