Jira issue originally created by user johannes:
In the following example, the columns of the classes B, C, D are not in the database schema. Only those of the classes A and E.
/****
* @ORM\Entity
* @ORM\Table(name = "a")
* @ORM\ChangeTrackingPolicy("DEFERRED_EXPLICIT")
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="type", type="string", length=20)
* @ORM\DiscriminatorMap({
* "c" = "C",
* "d" = "D",
* "e" = "E"
* })
*/
abstract class A { }
/****
* @ORM\Entity
*/
abstract class B extends A { }
/****
* @ORM\Entity
*/
class C extends B { }
/****
* @ORM\Entity
*/
class D extends B { }
/****
* @ORM\Entity
*/
class E extends A { }