Sammaye/MongoYii — pull request #104 by Rathil (2013-08-25 10:05:20+00:00)
Title: Fix for method count without specifying $criteria but with the condition in defaultScope

...
/**
* @return array
*/
public function defaultScope()
{
return [
'condition' => [
'sameField' => true
]
];
}
...

MyModel::model()->count();