protected function queryFoundModels()
    {
        $countQueryHelper = clone($this->_queryHelper);
        $countQueryHelper->resetSelect("count(*)");
        $countQueryHelper->resetOrderBy();
        $countQueryHelper->resetLimit();
        $query = $this->_dataSource->prepare($countQueryHelper->buildQuery());
        $query->execute($countQueryHelper->getWhereParamsValues());

        return (int)$query->fetch(\PDO::FETCH_COLUMN);
    }
protected function queryFoundModels()
    {
        $countQueryHelper = clone($this->_queryHelper);
        $countQueryHelper->resetSelect("count(*)");
        $countQueryHelper->resetOrderBy();
        $countQueryHelper->resetLimit();
        $query = $this->_dataSource->prepare($countQueryHelper->buildQuery());
        $query->execute($countQueryHelper->getWhereParamsValues());

        return (int)$query->fetch(\PDO::FETCH_COLUMN);
    }
protected function queryFoundModels ( ) { $ countQueryHelper = clone ( $ this -> _queryHelper ) ; $ countQueryHelper -> resetSelect ( "count(*)" ) ; $ countQueryHelper -> resetOrderBy ( ) ; $ countQueryHelper -> resetLimit ( ) ; $ query = $ this -> _dataSource -> prepare ( $ countQueryHelper -> buildQuery ( ) ) ; $ query -> execute ( $ countQueryHelper -> getWhereParamsValues ( ) ) ; return ( int ) $ query -> fetch ( \ PDO :: FETCH_COLUMN ) ; }
Execute query to count number of model in database without limit

@return mixed
Execute query to count number of model in database without limit