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

Closed
opened 2026-01-22 14:27:39 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 15, 2014).

Originally assigned to: @beberlei on GitHub.

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 e.id, '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.

Originally created by @doctrinebot on GitHub (Mar 15, 2014). Originally assigned to: @beberlei on GitHub. 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 e.id, '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](http://www.doctrine-project.org/jira/browse/DDC-1077). It's written that it was Resolved, but it does not work.
admin added the Bug label 2026-01-22 14:27:39 +01:00
admin closed this issue 2026-01-22 14:27:40 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 15, 2014):

Comment created by cream_cheeze:

Sorry, that was my mistake. It works fine!

@doctrinebot commented on GitHub (Mar 15, 2014): Comment created by cream_cheeze: Sorry, that was my mistake. It works fine!
Author
Owner

@doctrinebot commented on GitHub (Mar 15, 2014):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Mar 15, 2014): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3763