Doctrine\ORM\Mapping\ClassMetadataFactory::addDefaultDiscriminatorMap
Adds a default discriminator map if no one is given
If an entity is of any inheritance type and does not contain a discriminator map, then the map is generated automatically. This process is expensive computation wise. The automatically generated discriminator map contains the lowercase short name of each class as key.
Signature
private function addDefaultDiscriminatorMap(ClassMetadata
$class )
Parameters
$class
— \Doctrine\ORM\Mapping\ClassMetadata