mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #10643] Fix single table inheritance with intermediate abstract class(es) #12510
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?
Original Pull Request: https://github.com/doctrine/orm/pull/10643
State: closed
Merged: Yes
We need to make sure to query the discriminator map only with contained classes, otherwise we end up trying to access it with e.g. abstract sub-classes of the current class, which are not to be contained in the discriminator map. This is caused by the introduction of auto-discovering of missing sub-classes in https://github.com/doctrine/orm/pull/10411 which also added abstract classes to ClassMetadata::subClasses.
Fixes #10625
Test based on PR https://github.com/doctrine/orm/pull/10411