In my project I have several class table inheritances like this:
namespace MyProject\\Model; /** * @Entity * @InheritanceType(\"JOINED\") * @Discriminat
You can use the following solution:
`$`$metadata = \Doctrine\ORM\Mapping\ClassMetadata((string)$entityName); print_r($metadata->discriminatorValue);`