Learn CakePHP by Rādhārādhya Dāsa
Author: Rādhārādhya Dāsa , Date: November 5, 2016
, Views: 335
HasMany Associations
In our blog database categories, hasMany posts means that a category can have many posts.
BelongsTo Associations
This is the other end of a hasOne or hasMany association. So, in the previous examples, a profile belongsTo a user and a post belongsTo a category.
BelongsToMany associations
In our blog database, there is a belongsToMany association between posts and tags, meaning that a post can have many tags and a tag can be assigned to many posts.
CakePHP Controllers
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.