Doctrine/Listener/AbstractMapsSubscriber.php
public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)
    {
        $metadata = $eventArgs->getClassMetadata();

        if ($metadata->getName() === self::ROOT_CHARACTERISTICS_CLASS) {
            $metadata->setDiscriminatorMap($this->characteristicsClassesMap);
        }
    }
public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)
    {
        $metadata = $eventArgs->getClassMetadata();

        if ($metadata->getName() === self::ROOT_CHARACTERISTICS_CLASS) {
            $metadata->setDiscriminatorMap($this->characteristicsClassesMap);
        }
    }
public function loadClassMetadata ( LoadClassMetadataEventArgs $ eventArgs ) { $ metadata = $ eventArgs -> getClassMetadata ( ) ; if ( $ metadata -> getName ( ) === self :: ROOT_CHARACTERISTICS_CLASS ) { $ metadata -> setDiscriminatorMap ( $ this -> characteristicsClassesMap ) ; } }
Sets the discriminator maps on AbstractCharacteristics entity mappings.

@param LoadClassMetadataEventArgs $eventArgs
Sets the discriminator maps on AbstractCharacteristics entity mappings .