Well, understanding is easier when you use real names instead of abstract ones ;-)
How about "Post hasMany Comment," rather than "MyModel hasMany SomeModel". The hasMany/belongsTo relationships are the most common, and probably the easiest to understand. When we establish the relationship above, Cake will expect a 'post_id' field in the 'comments' table. This is used to associate a group of Comment records with a specific Post. Also, since relationships are reciprocal, if Post hasMany Comment, then Comment belongsTo Post; hasMany and belongsTo are reciprocal relationships. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
