One of CakePHP's most powerful features is the ability to relate the relational mapping provided by the model. In CakePHP, relationships between models are handled through associations. If you configure these associations in your model, Cake will automatically receive the associated data when you retrieve your data.
Restrained behavior allows you to filter and restrict model search operations (provided that you create your model associations)
http://book.cakephp.org/view/1323/Containable
bind and unbind are useful for changing model associations on the fly:
http://book.cakephp.org/view/1045/Creating-and-Destroying-Associations-on-the-Fly
Mike
source share