[PR #848] eliminate duplicate placeholders in "walkComparison" function within Que... #8802

Closed
opened 2026-01-22 16:01:46 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/848

State: closed
Merged: No


...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.

**Original Pull Request:** https://github.com/doctrine/orm/pull/848 **State:** closed **Merged:** No --- ...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.
admin added the pull-request label 2026-01-22 16:01:46 +01:00
admin closed this issue 2026-01-22 16:01:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#8802