Of course, it's simple. Thank you.
On Apr 24, 12:27 pm, Dovdimus Prime <[EMAIL PROTECTED]> wrote: > Hmmm. I should point out, as indicated in the thread title, that both > foreign keys actually point to the same table. I don't know if this > makes a difference. > > Here's the logic: > > The model is an answer which is selected for a question as part of a > questioning process. Each answer has a preceding question and a > following question. > > Thus, the answer model needs two foreign keys to the question table/ > model. > > Thanks > > David > > On Apr 24, 11:27 am, Dovdimus Prime <[EMAIL PROTECTED]> wrote: > > > > > Hi all > > > I'm beginning with CakePHP. I understand that in defining a model, you > > can specify a foreign key relationship (in this case to a parent > > table) by setting the $belongsTo variable. > > > The obvious question is: how do you specify two parent tables? What if > > an Employee model has a Site parent model and a Department parent > > model? You would need two $belongsTo variables to specify these > > relationships... > > > Thanks > > > David- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
