From 11f096501bcb266576a8c8b09a8d3cf083416d07 Mon Sep 17 00:00:00 2001 From: schniper Date: Sun, 2 Jan 2011 12:04:42 -0800 Subject: [PATCH] On Win, $bundle->getPath() returns a backspace delimited path and the substraction of slash delimited $path doesn't work. --- .../DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));