Paginator/DataSetPaginator.php
protected function replaceSingleHavingClause(Query\Expr\Comparison $comparison, ColumnCollection $columns, QueryBuilder $queryBuilder)
    {
        $source     = $columns->get($comparison->getLeftExpr())->getPaginatorSource();
        $param      = $comparison->getRightExpr();
        $operator   = $this->getOperator($comparison->getOperator());
        $expression = $queryBuilder->expr()->{$operator}($source, $param);
        $queryBuilder->andWhere($expression);
    }
protected function replaceSingleHavingClause(Query\Expr\Comparison $comparison, ColumnCollection $columns, QueryBuilder $queryBuilder)
    {
        $source     = $columns->get($comparison->getLeftExpr())->getPaginatorSource();
        $param      = $comparison->getRightExpr();
        $operator   = $this->getOperator($comparison->getOperator());
        $expression = $queryBuilder->expr()->{$operator}($source, $param);
        $queryBuilder->andWhere($expression);
    }
protected function replaceSingleHavingClause ( Query \ Expr \ Comparison $ comparison , ColumnCollection $ columns , QueryBuilder $ queryBuilder ) { $ source = $ columns -> get ( $ comparison -> getLeftExpr ( ) ) -> getPaginatorSource ( ) ; $ param = $ comparison -> getRightExpr ( ) ; $ operator = $ this -> getOperator ( $ comparison -> getOperator ( ) ) ; $ expression = $ queryBuilder -> expr ( ) -> { $ operator } ( $ source , $ param ) ; $ queryBuilder -> andWhere ( $ expression ) ; }
Replaces a single having clause because scalar types are not supported in doctrine paginator by default

@param Query\Expr\Comparison $comparison
@param ColumnCollection      $columns
@param QueryBuilder          $queryBuilder
Replaces a single having clause because scalar types are not supported in doctrine paginator by default