propelorm/PropelBundle — Issue #105: Symfony cache directory is configurable but not used
Author: istaveren
Created: 2012-02-17 10:39:52+00:00
State: open

When you configure your cache directory to an other location than the default one in Symfony this setting is not used by propel.

Please consider this fix:
```php
### Eclipse Workspace Patch 1.0
#P suite
Index: Symfony/vendor/bundles/Propel/PropelBundle/Command/AbstractPropelCommand.php
===================================================================
--- Symfony/vendor/bundles/Propel/PropelBundle/Command/AbstractPropelCommand.php
+++ Symfony/vendor/bundles/Propel/PropelBundle/Command/AbstractPropelCommand.php
@@ -96,7 +96,7 @@
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);

```