public function count()
    {
        $this->throwIfContextInvalid();

        $this->reloadQueryAdapter();
        $results = $this->activeQuery->fetch();

        $this->resetCurrentQuery();

        return count($results);
    }
public function count()
    {
        $this->throwIfContextInvalid();

        $this->reloadQueryAdapter();
        $results = $this->activeQuery->fetch();

        $this->resetCurrentQuery();

        return count($results);
    }
public function count ( ) { $ this -> throwIfContextInvalid ( ) ; $ this -> reloadQueryAdapter ( ) ; $ results = $ this -> activeQuery -> fetch ( ) ; $ this -> resetCurrentQuery ( ) ; return count ( $ results ) ; }
Fetches the number of results the current queries returned.
This ends the current query.
@return integer
Fetches the number of results the current queries returned . This ends the current query .