src/MetadataListener.php
public function loadClassMetadata(LoadClassMetadataEventArgs $class)
    {
        $metaData = $class->getClassMetadata();
        $adoptees = $this->collector->getAdoptees($metaData->name);
        foreach ($adoptees as $discriminator => $adoptee) {
            $metaData->discriminatorMap[$discriminator] = $adoptee;
        }
    }
public function loadClassMetadata(LoadClassMetadataEventArgs $class)
    {
        $metaData = $class->getClassMetadata();
        $adoptees = $this->collector->getAdoptees($metaData->name);
        foreach ($adoptees as $discriminator => $adoptee) {
            $metaData->discriminatorMap[$discriminator] = $adoptee;
        }
    }
public function loadClassMetadata ( LoadClassMetadataEventArgs $ class ) { $ metaData = $ class -> getClassMetadata ( ) ; $ adoptees = $ this -> collector -> getAdoptees ( $ metaData -> name ) ; foreach ( $ adoptees as $ discriminator => $ adoptee ) { $ metaData -> discriminatorMap [ $ discriminator ] = $ adoptee ; } }
Handle LoadClassMetadataEvents to inject adoptees.
@param LoadClassMetadataEventArgs $class
Handle LoadClassMetadataEvents to inject adoptees .