mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Deprecate: Load *-to-one entity with subClasses #7071
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 @dmitryuk on GitHub (Nov 18, 2022).
BC Break Report
Summary
UnitOfWork has a way to hydrate *-to-one relation entity, that has subClasses (inherited):
But in my case I received a large performance overhead because my entity has hierarchic structure like
parent->parent->parent.So querying one Entity will execute and hydrate all
parents and it was really hard to find reason.Previous behavior
Large overhead without notice
Current behavior proposal (2.0)
trigger_deprecationif this going on.Doctrine 3 proposal
Throw an exception