[DoctrineBundle] Add support to setting the Annotations prefix to @orm: for EntityGeneration beginning with Doctrine ORM 2.0.2-DEV.
This commit is contained in:
parent
eb918ac86d
commit
d8e03ac782
@ -70,6 +70,9 @@ abstract class DoctrineCommand extends Command
|
||||
{
|
||||
$entityGenerator = new EntityGenerator();
|
||||
|
||||
if (version_compare(\Doctrine\ORM\Version::VERSION, "2.0.2-DEV") >= 0) {
|
||||
$entityGenerator->setAnnotationPrefix("orm:");
|
||||
}
|
||||
$entityGenerator->setGenerateAnnotations(false);
|
||||
$entityGenerator->setGenerateStubMethods(true);
|
||||
$entityGenerator->setRegenerateEntityIfExists(false);
|
||||
|
Reference in New Issue
Block a user