mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
ManyToManyPersister::loadCriteria IN operator bad translation #6279
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 @bednic on GitHub (Aug 9, 2019).
Originally assigned to: @bednic on GitHub.
Bug Report
Summary
Current behavior
If you use Criteria::exp()->in() on relation collection, in this case ManyToMany, the query built in method ::loadCriteria translate are wrong.
are translated to this
but should end up like this
How to reproduce
Expected behavior
It should be enough if someone add something like this:
@bednic commented on GitHub (Aug 10, 2019):
After deep inspect I suppose whole ManyToManyPersister should be reworked. It works with database but missing all SQL translation techniks from BasicEntityPersister, so most of advanced queries are invalid. For example LIKE is translated to CONTIANS, IN don't expand parameters before query execution. There is a lot of work 😞
@lcobucci commented on GitHub (Oct 2, 2019):
@bednic would you be able to send us a failing functional test case that reproduces this issue (targetting
2.6)? It would help us a lot to find a way to fix things 👍