Jira issue originally created by user shiroyuki:
When one entity have multiple nested levels and associated to 700 other entities, the ORM exhausts a large amount of memory and execution time which exceeds either the memory limit or the maximum execution time.
How to Reproduce:
The initial investigation indicates that UnitOfWork should not trigger the post-load event for uninitialized proxies.
One thing worth-mentioning is that if the event listener ignores all proxies, we will not have this problem. However, some properties (e.g., ones of type TEXT/BLOB) are not loaded into normal entities but they are loaded into the proxies.