mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Argument #1 ($sql) must be of type string, null given #7246
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 @mikaeldelsol on GitHub (Nov 17, 2023).
BC Break Report
Summary
Previous behavior
Normally returns an array, empty or not.
Current behavior
Running this same code produces this error:
From what I observed, the SingleSelectExecutor::__construct method is not called.
How to reproduce
Both case:
Working case:
doctrine/orm:2.16.2
Broken case:
doctrine/orm:2.17.0
How to "fix"
Run command
bin/console cache:clearFrom what I observed, the SingleSelectExecutor::__construct method is then called.
@greg0ire commented on GitHub (Nov 17, 2023):
Please only make bug reports for the latest possible versions. 2.17.1 is out (and fixes your bug).