mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Trying to access array offset on value of type null #6784
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 @CsabaNa on GitHub (Jul 6, 2021).
Bug Report
I assume there is a typo in the
BasicEntityPersister.phpat line 1685I have not tested with the lates 2.9.3 yet but
Summary
In the
BasicEntityPersister.phpat line 1685 the ternary checks the$assocnot the$associationCurrent behavior
it failing due to wrong variable name:
How to reproduce
E.g. call
findOneBywithManyToManyrelation condition.Expected behavior
Do not throw exceptions and find the record(s)