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

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

        $this->translationService->transfer($entity);
    }
public function preUpdate(PreUpdateEventArgs $args)
    {
        $entity = $args->getEntity();

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

        $this->translationService->transfer($entity);
    }
Encrypt encryptable entity properties before saving in storage.

@param \Doctrine\ORM\Event\PreUpdateEventArgs $args