student belonging to an ethnicity. think as u will relate in the real world.
regards suman On Apr 10, 1:36 am, Sergei Gerasenko <[EMAIL PROTECTED]> wrote: > One question that has been bugging me is the different between hasOne > and belongsTo. > > For example, let's say I have a table named "students" and a table named > "ethnicities", with "ethnicity_id" being a foreign key in "students". > > When describing the model for "students", do I think in terms of a student > having one ethnicity or a student belonging to an ethnicity? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
