Skip to content


DDC-3031: ORM does not understand constants in SELECT clause #3800

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user cream_cheeze:

It seems that doctrine do not understand constants in SELECT clause.
I try to execute such a query:

SELECT, 'abc' as flag FROM SomeEntity

And I get this error:

[Semantical Error] line 0, col 40 near 'parent, p.weight,': Error: Invalid PathExpression. Must be a StateFieldPathExpression.

There was an issue like this a long time ago: DDC-1077. It's written that it was Resolved, but it does not work.


Comment created by cream_cheeze:

Sorry, that was my mistake. It works fine!


Issue was closed with resolution "Invalid"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.