mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
PHP 7.4: Object Hydrator is trying to access related entity without initialization when fetch mode = "EAGER" #6364
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 @EvgeniiR on GitHub (Dec 6, 2019).
Bug Report
Summary
Error when calling
\Doctrine\ORM\EntityManager::find:How to reproduce
Entities
Code
@oojacoboo commented on GitHub (Jan 7, 2020):
There are 2 pull requests that have attempted to address this:
https://github.com/doctrine/orm/pull/7950 and https://github.com/doctrine/orm/pull/7857
@SenseException commented on GitHub (Jan 13, 2020):
@EvgeniiR Can we close this issue in favor of #7854? It seems to be a duplicate.
@EvgeniiR commented on GitHub (Jan 14, 2020):
@SenseException Yes, seems that https://github.com/doctrine/orm/pull/7857 have test case for this.
@SenseException commented on GitHub (Jan 14, 2020):
Thank you 👍