diff --git a/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php b/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php index e2dfc20384a3..cc46a74457e6 100644 --- a/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php +++ b/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php @@ -99,6 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $repoGenerator = new EntityRepositoryGenerator(); foreach ($metadata->getMetadata() as $m) { $output->writeln(sprintf(' > generating %s', $m->name)); + $generator->setAnnotationPrefix('ORM\\'); $generator->generate(array($m), $metadata->getPath()); if ($m->customRepositoryClassName && false !== strpos($m->customRepositoryClassName, $metadata->getNamespace())) {