doctrine/doctrine2 — pull request #448 by stefanklug (2012-09-18 10:18:24+00:00)
Title: Fixed Parser problem for SELECT (((3))) as ....

Hi this is the old PR https://github.com/doctrine/doctrine2/pull/438 ported to master.
I had to modify more than I expected to get it to work properly.

I had to apply some modifications to Parser::ScalarExpression and would like to discuss the desired coding style. After my modifications Parser::ScalarExpression looks a bit more like Parser::SelectExpression, but I don't know your preferred style.

I think there is some more cleanup we could apply to ScalarExpression, but I'd like to get some feedback first.

Stefan