Bhaktaraz

Web Enthusiastic, Nature Lover

Tag: Single Class Inheritance

Doctrine 2 Single Class Inheritance (SCI)

Single Class Inheritance is an inheritance mapping strategy where all classes of a hierarchy are mapped to a single database table. In order to distinguish which row represents which type in the hierarchy a so-called discriminator column is used. Things to note: The @InheritanceType, @DiscriminatorColumn and @DiscriminatorMap must be specified on the topmost class that