I'm thinking how to ignore default scopes
I'm using
$criteria = new CDbCriteria;
$criteria->order = 'fields.position DESC';
$criteria->together = true;
$criteria->condition = 'publish=:publish AND category_id IS NOT NULL';
$criteria->params = array(':publish' => 1);
$fields = ItAdsCategories::model()->with('fields');
//$fields->resetScope(); // ????????
$fields = $fields->findAll($criteria);
I don't understand in witch plase I must use resetScopes to reset 'fields' relation default scopes.
Hope I clearlly describe my problem
thanks

Help













