Google News
logo
CakePHP - Interview Questions
What do you understand by HABTM?
There are many types of associations in CakePHP that links are used to link different models. HABTM (Has And Belongs To Many) is a type of model association in CakePHP. HABTM is used to associate two models in many ways and repeatedly.
 
The unique thing about HABTM is that the link between the models is no exclusive. Also, the data in HABTM is a complete set. So, each time a new data association is added, the complete set in HABTM is dropped and created again.
Advertisement