Created
September 4, 2010 15:24
-
-
Save extraordinaire/565268 to your computer and use it in GitHub Desktop.
Patch for Symfony2 doctrine:generate:entity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php b/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php | |
index 6100d31..444921e 100644 | |
--- a/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php | |
+++ b/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php | |
@@ -71,7 +71,7 @@ EOT | |
} | |
$entity = $input->getArgument('entity'); | |
- $entityNamespace = $namespace.'\\'.$bundle.'\\Entities'; | |
+ $entityNamespace = $namespace.'\\'.$bundle.'\\Entity'; | |
$fullEntityClassName = $entityNamespace.'\\'.$entity; | |
$tmp = str_replace('\\', '/', $fullEntityClassName); | |
$tmp = str_replace('/', '\\', dirname($tmp)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The entity namespace should end in "Entity" instead of "Entities", otherwise the following exception is thrown: