On 6/6/07, Wole <[EMAIL PROTECTED]> wrote: > > > Second, I need help with figuring out the association between two > models, Team and Game. They are part of a basketball league Website I > am building. I believe the appropriate association between the models > is hasAndBelongsToMany, but I could be wrong. I set the > $hasAndBelongsToMany variable in both models (see listing below) and I > also setup the teams_games database which contains the fields team_id > and game_id.
Shouldn't the relationships be belongsTo and hasMany Games belongsTo Teams Teams hasMany Games -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
