I agree with Chris On 6/25/07, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > > On 6/25/07, inVINCable <[EMAIL PROTECTED]> wrote: > > Each user will be linked to ONLY one city, and each city will have > > many users. So the best way I can think of to set up this model > > association is to use the hasAndBelongsToMany for the cities so each > > city will be assigned to a user. I have my models set up something > > like this. (By the way when a user signs up a city_id is automatically > > assigned to him that is the same as the id field in the city table) > > > > Shouldn't it be: > > city hasMany users > users belongTo city > > -- > Chris Hartjes > Senior Developer > Cake Development Corporation > > 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 -~----------~----~----~----~------~----~------~--~---
