mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
doctrine/orm tries to log NULL value via the DBAL logger #7252
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 @rogervila on GitHub (Nov 20, 2023).
Bug Report
Summary
doctrine/orm tries to log a null value via the DBAL logger when using \Doctrine\ORM\Query@getSingleResult() after upgrading from 2.16.3 to 2.17.1
Current behavior
doctrine/orm tries to log a null value via the DBAL logger when using \Doctrine\ORM\Query@getSingleResult()
This is the error trace:
How to reproduce
This is the class that triggers the error (names have been modified)
Expected behavior
doctrine/orm should not try to log a NULL value since the logger expects string values.
@greg0ire commented on GitHub (Nov 20, 2023):
This looks related to https://github.com/doctrine/orm/pull/11027… what query cache do you use? Do you reproduce this on your development environment?