Permalink
Browse files

[DoctrineBundle] fixed typo

  • Loading branch information...
1 parent 52c3bce commit 2636e36bbf6a31263fb7d58a07660c66daa52179 @fabpot fabpot committed May 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Bundle/DoctrineBundle/Command/ImportMappingDoctrineCommand.php
View
2 src/Symfony/Bundle/DoctrineBundle/Command/ImportMappingDoctrineCommand.php
@@ -89,7 +89,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$className = $class->name;
$class->name = $bundle->getNamespace().'\\Entity\\'.$className;
if ('annotation' === $type) {
- $path = $destPath.'/'.$className.'.orm.php';
+ $path = $destPath.'/'.$className.'.php';
} else {
$path = $destPath.'/'.$className.'.orm.'.$type;
}

3 comments on commit 2636e36

@abdeltiflouardi

I want to generate the entities
i executed this command php app/console doctrine:mapping:import AppCoreBundle annotation files generated

But this generate error
php app/console doctrine:generate:entities AppCoreBundle
[Doctrine\Common\Annotations\AnnotationException]

[Semantical Error] The annotation "@orm:Table" in class App\CoreBundle\Entity\Crud was never imported.

@fabpot
Symfony member

I've just made a small update to avoid the generation of the orm: prefix as it's not needed anymore. But as the Doctrine EntityManager class does not add the use statements yet, it won't work. In the meantime, you can just add this use statement in the generated classes: use Doctrine\ORM\Mapping as ORM; and add ORM\ for all annotations. Sorry for the inconvenience.

Please sign in to comment.