Details
Description
the Aggregate Expressions "AVG" | "MAX" | "MIN" | "SUM", should be not only followed by StateFieldPathExpression , but also SimpleArithmeticExpression,
see http://www.doctrine-project.org/docs/orm/2.0/en/reference/dql-doctrine-query-language.html#aggregate-expressions
i found it can not execute dql like
select sum(c.quantity * c.price) total_price from cart c
i think, this should be a bug
You are totally right.
I fixed on trunk repository. Thanks a lot for pointing out this issue. =)