Skip to content

Commit d7da15d

Browse files
committed
merged branch nicodmf/master (PR symfony#1469)
Commits ------- bf76bed Correct prefix from nothing to ORM\ for annotations Discussion ---------- Correct prefix from nothing to ORM\ for annotations For yml et xml mapping, the commands generate:doctrine:entities and doctrine:generate:entities, don't prefixed the annotations, specially for the listenners methods (prepersist, preupdate...).
2 parents 20fbcbe + bf76bed commit d7da15d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
9999
$repoGenerator = new EntityRepositoryGenerator();
100100
foreach ($metadata->getMetadata() as $m) {
101101
$output->writeln(sprintf(' > generating <comment>%s</comment>', $m->name));
102+
$generator->setAnnotationPrefix('ORM\\');
102103
$generator->generate(array($m), $metadata->getPath());
103104

104105
if ($m->customRepositoryClassName && false !== strpos($m->customRepositoryClassName, $metadata->getNamespace())) {

0 commit comments

Comments
 (0)