diff --git a/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php b/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php index 2f8be083c9ac3..c6a16750c7467 100644 --- a/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php +++ b/src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php @@ -73,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output) // transform classname to a path and substract it to get the destination $path = dirname(str_replace('\\', '/', $class)); - $destination = str_replace('/'.$path, "", $bundle->getPath()); + $destination = str_replace('/'.$path, "", str_replace('\\', '/', $bundle->getPath())); if ($metadatas = $this->getBundleMetadatas($bundle)) { $output->writeln(sprintf('Generating entities for "%s"', $class));