src/Sulu/Component/Rest/ListBuilder/Doctrine/DoctrineListBuilder.php
protected function assignGroupBy($queryBuilder)
    {
        if (!empty($this->groupByFields)) {
            foreach ($this->groupByFields as $fields) {
                $queryBuilder->groupBy($fields->getSelect());
            }
        }
    }
protected function assignGroupBy($queryBuilder)
    {
        if (!empty($this->groupByFields)) {
            foreach ($this->groupByFields as $fields) {
                $queryBuilder->groupBy($fields->getSelect());
            }
        }
    }
protected function assignGroupBy ( $ queryBuilder ) { if ( ! empty ( $ this -> groupByFields ) ) { foreach ( $ this -> groupByFields as $ fields ) { $ queryBuilder -> groupBy ( $ fields -> getSelect ( ) ) ; } } }
Sets group by fields to querybuilder.

@param QueryBuilder $queryBuilder
Sets group by fields to querybuilder .