My defaultScope looks like this:
public function defaultScope()
{
return array(
'condition' => '`is_active` = 1, `is_verified` = 1, `is_banned` = 0',
'order' => 'position ASC',
);
}
This defaultScope thing is really great for the frontend of my web project, but backstage I’d like to see ALL entries. Is there a possibility to override the defaultScope? Something like:
Product::model()->findAll(array('defaultScope' => false));
I know there are named scopes, so please don’t explain my how to use them As there are many relations between tables and every table has it’s own defaultScopes I don’t want remember all those scope names