On Oct 23, 2006, at 3:35 PM, Robert wrote:

>
> Hey guys,
>
> ok, been doing a lot of reading the last few days and I think I am
> nearly ready to start creating some more complex models and
> associations. But I have a question about Foregin keys.
>
> In the manual (http://manual.cakephp.org/chapter/models -section 4) it
> shows how to make associations inside the Model. But my question  
> is, in
> the MySQL creation of the tables, does one have to set the foreign_key
> (someId) when creating a table?

Short answer: no.

The data you specify in the association array (or the things it can  
assume by not specifying them) is all you need. Did you have some  
problems when you tried this?

-- John

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to