This PR breaks my grids.
In my selectExpressions I have dql functions (max, countIf, ...). I think they shouldn't be in the groupByClause.

@whachoe, @Abhoryo what's your opinion ?

I've fixed my issue, replacing the 72 line by : 
`} elseif ($selectExpression->expression instanceof PathExpression) {`