Преглед на файлове

Added output to doctrine:generate:entity command and removed undesirable (and misnamed) call to doctrine:generate:entities.

Jeremy Mikola преди 15 години
родител
ревизия
75cc89b4ee
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/Symfony/Framework/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php

+ 2 - 2
src/Symfony/Framework/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php

@@ -120,8 +120,8 @@ EOT
             mkdir($dir, 0777, true);
         }
 
+        $output->writeln(sprintf('Generating entity for "<info>%s</info>"', $bundle));
+        $output->writeln(sprintf('  > generating <comment>%s</comment>', $fullEntityClassName));
         file_put_contents($path, $code);
-
-        $this->runCommand('doctrine:generate-entities');
     }
 }