Yes,
 see the models section of the manual, or search the group, as the
very same question was asked not long ago, and many times before!!

You cna also define which fields to use for joining in Model
realtionships, again in the Model section of the manual.

Happy Baking....

On Nov 1, 5:25 am, cronet <[EMAIL PROTECTED]> wrote:
> Hi,
>
> is there a way to tell cake that the PK of an table is not "id" ?
>
> e.g.
>
> Table "hotels"
>
> id
> hotel_id
> hotel_type
> languagecode
> countrycode
>
> Table "hotel_types"
> id
> hoteltype_id
> name
>
> Now, i need to connect, hotels.hotel_type with
> hotel_types.hoteltype_id?
>
> Greets,
> Alexander


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