DDC-2740: [GH-819] Fixes a Fatal Error when using a subexpression in parenthesis #3431

Closed
opened 2026-01-22 14:19:48 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 14, 2013).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of vbourdeix:

Url: https://github.com/doctrine/doctrine2/pull/819

Message:

When some dql contains a subselect with expression in parenthesis, the
expression of the $simpleSelectExpression parameter given to
walkSimpleSelectExpression is an instance of AST\ParenthesisExpression.
Before this commit, this case defaulted to
$this->walkEntityIdentificationVariable($expr) where $expr is supposed
to be a string. A fatal error was then yielded.

Originally created by @doctrinebot on GitHub (Oct 14, 2013). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of vbourdeix: Url: https://github.com/doctrine/doctrine2/pull/819 Message: When some dql contains a subselect with expression in parenthesis, the expression of the $simpleSelectExpression parameter given to walkSimpleSelectExpression is an instance of AST\ParenthesisExpression. Before this commit, this case defaulted to $this->walkEntityIdentificationVariable($expr) where $expr is supposed to be a string. A fatal error was then yielded.
admin added the Bug label 2026-01-22 14:19:48 +01:00
admin closed this issue 2026-01-22 14:19:48 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 14, 2013):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-819] was closed:
https://github.com/doctrine/doctrine2/pull/819

@doctrinebot commented on GitHub (Oct 14, 2013): Comment created by @doctrinebot: A related Github Pull-Request [GH-819] was closed: https://github.com/doctrine/doctrine2/pull/819
Author
Owner

@doctrinebot commented on GitHub (Oct 16, 2013):

Comment created by @ocramius:

Merged: 95ad926c95

@doctrinebot commented on GitHub (Oct 16, 2013): Comment created by @ocramius: Merged: https://github.com/doctrine/doctrine2/commit/95ad926c9532e69d72be3dbee2f18f847e8d3f06
Author
Owner

@doctrinebot commented on GitHub (Oct 16, 2013):

Issue was closed with resolution "Fixed"

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

No dependencies set.

Reference: doctrine/archived-orm#3431