On 11 mayo, 13:13, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 5/11/07, kzm <[EMAIL PROTECTED]> wrote:> i want to associate two models 
> through a different field than 'id'. i
> > also want to have this relationship defined in the model itself, of
> > course.
>
> "#foreignKey: the name of the foreign key that points to the associated model.
>
> This is here in case you're working with a database that doesn't
> follow Cake's naming conventions."

/me awaits the revelation that modelB.field isn't a primary key

:D


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