When entity has relation to another entity that is part of Inheritance hierarchy, then loading the owning entity will cause additional query to determine which subclass should be loaded
→ Additional query for each entity in the result-set! (possibly thousands)
- You usually do not need inheritance
- Manually add
JOIN
andSELECT
to theDQL
queries (tests/src/InheritanceCausesAdditionalQuery/Solution/OccurrenceTest.php
)