From bc4bbe626fe9c27f5bb07abbaa862eec27255cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Kr=C3=A4mer?= Date: Tue, 15 Jul 2014 18:36:42 +0200 Subject: [PATCH] Fixing the class name generation in MigrationShell::_getSchema() --- Console/Command/MigrationShell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Console/Command/MigrationShell.php b/Console/Command/MigrationShell.php index e4cad064..985c28ad 100644 --- a/Console/Command/MigrationShell.php +++ b/Console/Command/MigrationShell.php @@ -696,7 +696,7 @@ protected function _getSchema($type = null) { $name = Inflector::camelize($type) . 'Schema'; if ($type === 'app' && !class_exists($name)) { - $appDir = str_replace('-', '', APP_DIR); + $appDir = preg_replace('/[^a-zA-Z0-9]/', '', APP_DIR); $name = Inflector::camelize($appDir) . 'Schema'; }