Doctrine DQL returns multiple types of entities
问题 I have three entities: HandsetSubscription, Handset and Subscription. The yaml of HandsetSubscription is: App\SoBundle\Entity\HandsetSubscription: type: entity table: handset_subscription manyToOne: handset: targetEntity: Handset subscription: targetEntity: Subscription id: id: type: integer generator: { strategy: AUTO } options: { unsigned: true } fields: amount: type: integer nullable: false options: { default: 0, unsigned: true } discount: type: integer nullable: false options: { default: