>From the Manual:
"The HABTM association is useful when you have two Models that are
linked together with a join table. The join table holds the individual
rows that are related to each other.

The difference between hasMany and hasAndBelongsToMany is that with
hasMany, the associated model is not shared. If a User hasMany
Comments, it is the *only* user associated to those comments. With
HABTM, the associated models are shared."

I'll admit that it could be explained a bit clearer but if you try to
digest what is being said then the only conclusion you (or at least I)
can come to is that a HABTM must be bi-directional (or could it be
multi-directional as well???:).

If you think about it logically you can't have only one
hasAndBelongsToMany since then it will in reality be a
hasMany/belongsTo relationship.

I hope I'm not too confusing here, I am trying to get a clear
understanding of this myself ;)


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to