public function deleteTranslationData($entity)
    {
        $metadata = $this->metadataCollection->getMetadata($entity);
        if($metadata === null) {
            return null;
        }

        $strategies = $this->strategyResolver->getStrategies();
        foreach($strategies as $strategy) {
            $strategy->deleteTranslationData($entity, $metadata);
        }
    }
public function deleteTranslationData($entity)
    {
        $metadata = $this->metadataCollection->getMetadata($entity);
        if($metadata === null) {
            return null;
        }

        $strategies = $this->strategyResolver->getStrategies();
        foreach($strategies as $strategy) {
            $strategy->deleteTranslationData($entity, $metadata);
        }
    }
public function deleteTranslationData ( $ entity ) { $ metadata = $ this -> metadataCollection -> getMetadata ( $ entity ) ; if ( $ metadata === null ) { return null ; } $ strategies = $ this -> strategyResolver -> getStrategies ( ) ; foreach ( $ strategies as $ strategy ) { $ strategy -> deleteTranslationData ( $ entity , $ metadata ) ; } }
Prepare deleting all translation data. Because this function should be called inside a doctrine hook, it contains
no flush.

@param $entity
@return null
@throws \Exception
Prepare deleting all translation data . Because this function should be called inside a doctrine hook it contains no flush .