original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: 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
docstring_tokens: Prepare deleting all translation data . Because this function should be called inside a doctrine hook it contains no flush .