Category : class-table-inheritance

I have two entities A and B, where B extends A: /** * Fruit * * @ORMTable( * name="fruits", * indexes={} * ) * @ORMEntity * @ORMInheritanceType("JOINED") * @ORMDiscriminatorColumn(name="type", type="string") * @ORMDiscriminatorMap({ * "apple" = "Apple" * }) */ abstract class Fruit extends AbstractEntity { /** * @var string * @ORMColumn(type="string" …) */ private $color; ..

Read more