src/Translation/EventListener/TranslateListener.php
public function postLoad(LifecycleEventArgs $args)
    {
        $entity = $args->getEntity();

        if (!$entity instanceof Translatable) {
            return;
        }

        $this->translationService->translate($entity);
    }
public function postLoad(LifecycleEventArgs $args)
    {
        $entity = $args->getEntity();

        if (!$entity instanceof Translatable) {
            return;
        }

        $this->translationService->translate($entity);
    }
public function postLoad ( LifecycleEventArgs $ args ) { $ entity = $ args -> getEntity ( ) ; if ( ! $ entity instanceof Translatable ) { return ; } $ this -> translationService -> translate ( $ entity ) ; }
Transfer translations from source to properties after retrieving them from storage

@param \Doctrine\ORM\Event\LifecycleEventArgs $args
Transfer translations from source to properties after retrieving them from storage