original_string: protected function generateTranslations($bundle, $entity, $metadata, $forceOverwrite)
      {
          try {
              $this->getTranslationsGenerator($bundle)->generate($bundle, $entity, $metadata[0], $forceOverwrite);
          } catch (\RuntimeException $e) {
              // form already exists
          }
      }
code: protected function generateTranslations($bundle, $entity, $metadata, $forceOverwrite)
      {
          try {
              $this->getTranslationsGenerator($bundle)->generate($bundle, $entity, $metadata[0], $forceOverwrite);
          } catch (\RuntimeException $e) {
              // form already exists
          }
      }
code_tokens: protected function generateTranslations ( $ bundle , $ entity , $ metadata , $ forceOverwrite ) { try { $ this -> getTranslationsGenerator ( $ bundle ) -> generate ( $ bundle , $ entity , $ metadata [ 0 ] , $ forceOverwrite ) ; } catch ( \ RuntimeException $ e ) { // form already exists } }
docstring: Tries to generate translations if they don't exist yet and if we need write operations on entities.
docstring_tokens: Tries to generate translations if they don t exist yet and if we need write operations on entities .