"Has and Belongs to Many"
The final association Cake can recognize for database table relationships is the "has and belongs to many" relationship. This relationship is powerful but also a little difficult to master. The more you experiment with "has and belongs to many" associations, the easier it will be to use them in your applications.
In short, I've already discussed a one-to-one relationship with the hasOne association, and the hasMany association shows you how a one-to-many relationship is managed in Cake. What about a many-to-many relationship?
Responses
-
zido_php5 months ago
- Reply