Articles tagged with unbind

unbindAll

By Brett ODonnell
Here is a simple way to unbind all models. Just put this function into your app_model.php
[Read more]

An improvement to unbindModel on model side

By Mariano Iglesias
Not long ago I saw Tom OReilly's great tutorial entitled "Keeping bindModel and unbindModel out of your Controllers." While he showed us some great tips I was not so comfortable having to define my model relations in a different way, but I still wanted the possibility to only specify what relations I want to get when querying a model.
[Read more]

Bindable Behavior: control your model bindings

By Mariano Iglesias
With the birth of CakePHP 1.2 pre-beta, here comes the newly, improved, and extended version of Bindable, a method to easily control what model relationships are obtained from a find operation, and even customize binding settings.
[Read more]