diff --git a/Command/AbstractPropelCommand.php b/Command/AbstractPropelCommand.php index b578c23..5a39695 100644 --- a/Command/AbstractPropelCommand.php +++ b/Command/AbstractPropelCommand.php @@ -96,7 +96,7 @@ abstract class AbstractPropelCommand extends ContainerAwareCommand if (isset($properties['propel.schema.dir'])) { $this->cacheDir = $properties['propel.schema.dir']; } else { - $this->cacheDir = $kernel->getRootDir().'/cache/' . $kernel->getEnvironment() . '/propel'; + $this->cacheDir = $kernel->getCacheDir().'/propel'; $filesystem = new Filesystem(); $filesystem->remove($this->cacheDir); diff --git a/Command/ReverseCommand.php b/Command/ReverseCommand.php index e3427e5..d9f1724 100644 --- a/Command/ReverseCommand.php +++ b/Command/ReverseCommand.php @@ -62,8 +62,8 @@ EOT $ret = $this->callPhing('reverse', array( 'propel.project' => $name, + 'propel.database' => $defaultConfig['adapter'], 'propel.database.url' => $defaultConfig['connection']['dsn'], - 'propel.database.database' => $defaultConfig['adapter'], 'propel.database.user' => $defaultConfig['connection']['user'], 'propel.database.password' => isset($defaultConfig['connection']['password']) ? $defaultConfig['connection']['password'] : '', ));