With class table inheritance,
/**
* @Entity
* @InheritanceType("JOINED")
* @DiscriminatorColumn(name="discr", type="string")
* @DiscriminatorMap({"person" = "Person", "employee" = "Employee"})
*/
class Person
How can I get the type info from the entity? Since discr is a database column but not a property of the entity?
You can create abstract method
getKind()in parent class and implement it in subclasses like