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