public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)
    {
        $classMetadata = $eventArgs->getClassMetadata();

        if (null === $classMetadata->reflClass) {
            return;
        }

        if ($this->isTranslatable($classMetadata)) {
            $this->mapTranslatable($classMetadata);
        }

        if ($this->isTranslation($classMetadata)) {
            $this->mapTranslation($classMetadata);
            $this->mapId(
                $classMetadata,
                $eventArgs->getEntityManager()
            );
        }
    }
public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)
    {
        $classMetadata = $eventArgs->getClassMetadata();

        if (null === $classMetadata->reflClass) {
            return;
        }

        if ($this->isTranslatable($classMetadata)) {
            $this->mapTranslatable($classMetadata);
        }

        if ($this->isTranslation($classMetadata)) {
            $this->mapTranslation($classMetadata);
            $this->mapId(
                $classMetadata,
                $eventArgs->getEntityManager()
            );
        }
    }
public function loadClassMetadata ( LoadClassMetadataEventArgs $ eventArgs ) { $ classMetadata = $ eventArgs -> getClassMetadata ( ) ; if ( null === $ classMetadata -> reflClass ) { return ; } if ( $ this -> isTranslatable ( $ classMetadata ) ) { $ this -> mapTranslatable ( $ classMetadata ) ; } if ( $ this -> isTranslation ( $ classMetadata ) ) { $ this -> mapTranslation ( $ classMetadata ) ; $ this -> mapId ( $ classMetadata , $ eventArgs -> getEntityManager ( ) ) ; } }
Adds mapping to the translatable and translations.

@param LoadClassMetadataEventArgs $eventArgs The event arguments
Adds mapping to the translatable and translations .