mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #819] [MERGED] Fixes a Fatal Error when using a subexpression in parenthesis #8754
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/819
Author: @vbourdeix
Created: 10/14/2013
Status: ✅ Merged
Merged: 10/14/2013
Merged by: @guilhermeblanco
Base:
master← Head:master📝 Commits (1)
5506d7aFixes a Fatal Error when using a subexpression in parenthesis📊 Changes
2 files changed (+11 additions, -0 deletions)
View changed files
📝
lib/Doctrine/ORM/Query/SqlWalker.php(+4 -0)📝
tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php(+7 -0)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.