you should not need to unbind. Binding the model with new options will
reset the association.
$this->Post-
>bindModel(array('hasMany'=>array('Comment'=>array('conditions'=>"Comment.published
= '1'";
the second snippet on this page might be useful if you find yourself
changing the options oft
Is there a simpler and shorter way to change the conditions of an
association in the controller without unbinding and rebinding the
association with the new condition?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups