Hi,
I have a helper function that loads a model and does ->get() on it. Since I've defined the model with behavior filters -> I'm only getting the records that are published, but I would like to have all records without filtering.
I currently did it by passing an array('noFilters' => true)
Hi, I have a helper function that loads a model and does ->get() on it. Since I've defined the model with behavior filters -> I'm only getting the records that are published, but I would like to have all records without filtering.
I currently did it by passing an
array('noFilters' => true)
then in the model I do:
Is this ok? or is there some magic prop I can pass to omit the $this->addBehavior on the object?