Re: Change conditions of an association without rebinding?

2007-03-04 Thread gwoo
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

Change conditions of an association without rebinding?

2007-03-03 Thread Jeff B
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