public function preRemove(LifecycleEventArgs $args)
    {
        $entity = $args->getEntity();
        $this->translator->deleteTranslationData($entity);
    }
public function preRemove(LifecycleEventArgs $args)
    {
        $entity = $args->getEntity();
        $this->translator->deleteTranslationData($entity);
    }
public function preRemove ( LifecycleEventArgs $ args ) { $ entity = $ args -> getEntity ( ) ; $ this -> translator -> deleteTranslationData ( $ entity ) ; }
If entity will be deleted, we need to delete all its translation data as well

@param LifecycleEventArgs $args
If entity will be deleted we need to delete all its translation data as well