mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #10387] Make sure the schema tool does not miss columns from abstract entity classes in a STI tree #12320
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/10387
State: closed
Merged: No
This PR fixes
SchemaToolso it does not miss fields inherited from abstract@Entityclasses in the middle of a single table inheritance (STI) tree, when these classes are not listed in the Discriminator Map (DM).Abstract entitiy classes not listed in the DM will not show up in the root entity's ClassMetadata
subClassesproperty. Fields inherited from them will show up in the field mapping metadata for subclasses, withinherited => ...being set.The Schema Tool would skip these inherited fields, probably based on the assumption that they will be taken care of when the declaring class is processed. This, however, did not happen for abstract classes not listed in the DM.
Update #10389 discusses whether it should in fact be a requirement to list also
abstractclasses in the DM, which might make this issue go away (masking it).Update 2 #10411 fixes this by making sure the missing
subClassesare filled in