Cheers John for the quick reply. Haven't run into problems, it was just that from my Databases lecture I vaguely remember something about foreign keys;) and the manual didn't mention it all, was just checking if it was something the author 'assumed' the reader had already done.
Any advise of indexes / unique? I did some googling, but its mind boggling the amount of info on this stuff, just looking for a few basic points on good database design. E,g, when to use Idexes, when to use Uniqu, etc.. thanks, R John David Anderson (_psychic_) wrote: > 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 [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 -~----------~----~----~----~------~----~------~--~---
