mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #848] [CLOSED] eliminate duplicate placeholders in "walkComparison" function within Que... #8799
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/848
Author: @bsahlhof
Created: 11/18/2013
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (1)
baf7645eliminate duplicate placeholders in "walkComparison" function within QueryExpressionVisitor📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
lib/Doctrine/ORM/Query/QueryExpressionVisitor.php(+1 -1)📄 Description
...ryExpressionVisitor
I've run into an issue when using Criteria with QueryBuilder when Criteria uses multiple checks on same variable in different context, example:
field1 = value OR (field1 in values AND field2 = true)... what happens is field 1 placeholder is duplicated, and an error occures in code complaining about invalid # of parameters. The fix eliminates this issue, making sure parametername is unique.
I have not had time to check any other possible issues this may cause, but a review of the code doesn't appear to impact any other function.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.