Query field of root entity in doctrine (joined) class table inheritance
问题 I have a entity named Content. This is my abstract base class for all my other Content related entities. /** * MyBundle\Entity\Content * * @ORM\Entity(repositoryClass="MyBundle\Repository\ContentRepository") * @ORM\InheritanceType("JOINED") * @ORM\DiscriminatorColumn(name="discr", type="string") * @ORM\Table(name="MyBundle_content") * @ORM\HasLifecycleCallbacks */ abstract class Content Content properties: id updated .... Further I have a lot of different entities that all extend Content. In