From a7ed277e78513749bcbf3c0baab2f9f3fe8dd9ab Mon Sep 17 00:00:00 2001 From: William DURAND Date: Mon, 5 Dec 2011 23:12:56 +0100 Subject: [PATCH] Fixed getPackagePrefix() method (fixes a bug 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 c79f2ce..2cc79d9 100644 --- a/Command/AbstractPropelCommand.php +++ b/Command/AbstractPropelCommand.php @@ -63,7 +63,7 @@ abstract class AbstractPropelCommand extends ContainerAwareCommand $parts = explode(DIRECTORY_SEPARATOR, realpath($bundle->getPath())); $length = count(explode('\\', $bundle->getNamespace())) * (-1); - $prefix = implode(DIRECTORY_SEPARATOR, array_slice($parts, 1, $length)); + $prefix = implode(DIRECTORY_SEPARATOR, array_slice($parts, 0, $length)); $prefix = ltrim(str_replace($baseDirectory, '', $prefix), DIRECTORY_SEPARATOR); if (!empty($prefix)) {