mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
2.20.7 / 3.5.3 seems to break EntityRepository::findBy... Empty Array Queries #7564
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 @alexander-schranz on GitHub (Oct 28, 2025).
Bug Report
Summary
The latest release seems to have a regression in it which breaks some of our code.
I debugged through the changes and it seems be related to: https://github.com/doctrine/orm/pull/11895
Current behavior
Expected behavior
No error.
See also: https://github.com/doctrine/orm/pull/12190#issuecomment-3455298734
How to reproduce
@elliotbruneel commented on GitHub (Oct 28, 2025):
Got the same error for 3.5.3
@alexander-schranz commented on GitHub (Oct 28, 2025):
Deeper debugging, in my case it seems like
EntityRepository::findByIdwas called with an emptyarray:That seems to have worked previously but fails now on 2.20.7.
@elliotbruneel commented on GitHub (Oct 28, 2025):
It's link to this fix: https://github.com/doctrine/orm/pull/12190#issuecomment-3455298734
@derrabus commented on GitHub (Oct 29, 2025):
Does any of you want to work on a PR that fixes the issue?
@W0rma commented on GitHub (Nov 12, 2025):
The bug should have been fixed in version
2.20.8and3.5.7.