mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
ManyToManyPersister don't generate proper matching query for "in" #7237
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 @mpoiriert on GitHub (Oct 29, 2023).
Bug Report
Summary
Matching criteria in ManyToManyPersister (maybe other) doesn't work with "in".
Error is here:
609647a51a/lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php (L257)Current behavior
When using in the value is not in using "(:value)" but just :value
Error would be something like this:
or the right syntax to use near '? LIMIT 1' at line 1
How to reproduce
Do a matching request with a criteria with in:
Expected behavior
Query shoudl be generated properly.
@W0rma commented on GitHub (Jan 14, 2025):
I stumbled over the same behaviour.
I'm using
doctrine/orm:3.3.1anddoctrine/dbal:4.2.1@mpdude commented on GitHub (Mar 31, 2025):
Please try #11895
@W0rma commented on GitHub (Apr 1, 2025):
@mpdude Works for me 👍
@mpoiriert commented on GitHub (Apr 3, 2025):
Didn't have time to test it but I have check the PR and it seems good 👍