/** * Executes query and returns all results as an array. * @param Connection $db the Mongo connection used to execute the query. * If null, the Mongo connection returned by [[modelClass]] will be used. * @return array|ActiveRecord the query results. If the query results in nothing, an empty array will be returned. */ public function all($db = null) { return parent::all($db); }