The easy rule of thumb with belongsTo is if your table has a foreignKey it belongsTo the model that key refers to.
Your only decision then is to choose whether the other side of the association is a hasOne or hasMany. Also whilst on the subject of understanding associations, it's worth noting that hasAndBelongsToMany is simply a convenience wrapper for - Model1 hasMany JoinModel - JoinModel belongsTo Model1 - JoinModel belongsTo Model2 - Model2 hasMany JoinModel HTH Paul. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
