protected function getQueryCount($table, Condition $condition = null)
    {
        $builder = $this->newQueryBuilder($table)
            ->select($this->connection->getDatabasePlatform()->getCountExpression($this->getPrimaryKey()));

        return $this->convertBuilder($builder, $condition);
    }
protected function getQueryCount($table, Condition $condition = null)
    {
        $builder = $this->newQueryBuilder($table)
            ->select($this->connection->getDatabasePlatform()->getCountExpression($this->getPrimaryKey()));

        return $this->convertBuilder($builder, $condition);
    }
protected function getQueryCount ( $ table , Condition $ condition = null ) { $ builder = $ this -> newQueryBuilder ( $ table ) -> select ( $ this -> connection -> getDatabasePlatform ( ) -> getCountExpression ( $ this -> getPrimaryKey ( ) ) ) ; return $ this -> convertBuilder ( $ builder , $ condition ) ; }
Returns an array which contains as first value a SQL query and as second
an array of parameters. Uses by default the dbal query builder to create
the SQL query. The query is used for the count method

@param string $table
@param \PSX\Sql\Condition|null $condition
@return array
Returns an array which contains as first value a SQL query and as second an array of parameters . Uses by default the dbal query builder to create the SQL query . The query is used for the count method