mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Querybuilder: Expected =, <, <=, <>, >, >=, !=, got 'IN' #7554
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?
Originally created by @PaulCombal on GitHub (Sep 24, 2025).
Bug Report
Summary
Using the querybuilder, using CASE WHEN + IN produces an error.
Using CASE WHEN with any other comparison works just fine
Current behavior
Produces:
[Syntax Error] line 0, col 911: Error: Expected =, <, <=, <>, >, >=, !=, got 'IN'Indeed, using any of the listed operators work just fine.
I tried finding a workaround but didn't find any, all other alternative syntaxes produce the same issue.
Expected behavior
The above DQL works, as suggested by the SQL syntax.
How to reproduce
The first querybuilder works, where the second querybuilder doesn't:
Thank you for the amazing work <3
@Dinesh0204 commented on GitHub (Oct 4, 2025):
Hi @PaulCombal ! I’ve opened a PR that addresses this issue: (https://github.com/doctrine/orm/issues/12178).
It includes a test and fixes the parser problem.