From bacae3feaebb61a67db744f4f74199a6816361d6 Mon Sep 17 00:00:00 2001 From: William DURAND Date: Mon, 5 Dec 2011 22:00:00 +0100 Subject: [PATCH] Fixed transformToLogicalName() method This fix should solve some bugs on Windows platforms. --- Command/AbstractPropelCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/AbstractPropelCommand.php b/Command/AbstractPropelCommand.php index 266398d..c79f2ce 100644 --- a/Command/AbstractPropelCommand.php +++ b/Command/AbstractPropelCommand.php @@ -483,7 +483,7 @@ EOT; private function transformToLogicalName(\SplFileInfo $schema, BundleInterface $bundle) { - $schemaPath = str_replace($bundle->getPath().'/Resources/config/', '', $schema->getPathname()); + $schemaPath = str_replace($bundle->getPath(). DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR, '', $schema->getRealPath()); return sprintf('@%s/Resources/config/%s', $bundle->getName(), $schemaPath); }