How to define a Doctrine mappedSuperclass using XML or YAML instead of annotation mapping
问题 The following script comes from https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/inheritance-mapping.html#mapped-superclasses, and was only changed to include a second sub-class. It is my understanding that MappedSuperclassBase cannot exist by itself but must be extended by one and only one sub-class (i.e. either EntitySubClassOne or EntitySubClassTwo ), and is the same concept as supertype/subtype for SQL. Agree? How is a super/sub type defined using either YAML or XML