mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #10587] Handle null comparisons in ManyToManyPersister
#12474
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?
Original Pull Request: https://github.com/doctrine/orm/pull/10587
State: closed
Merged: Yes
Fixes #5587, #5827 and #7717
The reason for
a50a611bee/lib/Doctrine/ORM/Persisters/SqlValueVisitor.php (L34-L38)was thatBasicEntityPersisterreplaces null comparisons withIS [NOT] NULLso it does not need the corresponding parameter.Problem is,
ManyToManyPersisterhas then no longer access to the comparison.My fix is to remove the condition in
SqlValueVisitorand make each persister wary of null comparisons. It feels super weird but tests pass.