mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
QueryBuilder fails to return data with an array parameter #7413
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 @duzenko on GitHub (Sep 2, 2024).
Bug Report
Summary
The QueryBuilder returns no records when using an array parameter
Current behavior
getOneOrNullResultreturns nullHow to reproduce
Case 1 ($la): simply works, when parameter is a string
Case 2 ($lb): what's happening inside the
DBAL/Connectioncode when passing the array parameter into a Query BuilderCase 3 ($lb): is the actual Query Builder usage that fails
Expected behavior
Either
$liis not nullOr Doctrine throws when/if it cannot handle array parameters
@duzenko commented on GitHub (Sep 2, 2024):
If this was fixed in a later version, please point me to the change log entry
@duzenko commented on GitHub (Sep 2, 2024):
FWIW my composer versions are
And the DB server is