eZ\Publish\Core\Persistence\Doctrine\SelectDoctrineQuery::groupBy PHP Method

groupBy() public method

You can call groupBy multiple times. Each call will add a column to group by. Example: $q->select( '*' )->from( 'table' ) ->groupBy( 'id' );
public groupBy ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery
return eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this
    public function groupBy()
    {
        $args = $this->parseArguments(func_get_args());
        foreach ($args as $groupByExpression) {
            $this->parts['groupBy'][] = $groupByExpression;
        }
        return $this;
    }