I have an entity which defines inheritance like this:
* @DiscriminatorColumn(name=\"type\", type=\"string\") * @DiscriminatorMap({\"text\" = \"TextAttribute\
Use something like this if you want, like me, avoid use of const :
public function getType() { $type = explode('\\', get_class($this)); return end($type); }