Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

'annotate' option is useless

  • Loading branch information...
commit 946f68e0294812d65ee0a0b102adbc4f9e4298e7 1 parent 512eb53
@mcbennn authored
7 src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php
@@ -33,7 +33,6 @@ protected function configure()
->addArgument('name', InputArgument::REQUIRED, 'A bundle name, a namespace, or a class name')
->addOption('path', null, InputOption::VALUE_REQUIRED, 'The path where to generate entities when it cannot be guessed')
->addOption('no-backup', null, InputOption::VALUE_NONE, 'Do not backup existing entities files.')
- ->addOption('annotate', null, InputOption::VALUE_NONE, 'Should we annotate generated entity classes')
The <info>doctrine:generate:entities</info> command generates entity classes
and method stubs from your mapping information:
@@ -64,11 +63,6 @@ protected function configure()
<info>./app/console doctrine:generate:entities Blog/Entity --no-backup</info>
-If you want that generated entity classes are annotated with ORM mapping,
-you can provide the <comment>--annotate</comment> option:
- <info>./app/console doctrine:generate:entities Blog/Entity --annotate</info>
@@ -97,7 +91,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$generator = $this->getEntityGenerator();
- $generator->setGenerateAnnotations($input->getOption('annotate'));
$repoGenerator = new EntityRepositoryGenerator();
foreach ($metadatas as $metadata) {
Please sign in to comment.
Something went wrong with that request. Please try again.