generate SQL files into cache directory

This fixes #376.
This commit is contained in:
Toni Uebernickel 2016-01-23 14:23:14 +01:00
commit eca10b8722
2 changed files with 6 additions and 17 deletions

View file

@ -52,9 +52,6 @@ EOT
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
// Bad require but needed :(
require_once $this->getContainer()->getParameter('propel.path') . '/generator/lib/util/PropelSqlManager.php';
if ($input->getOption('force')) {
$connections = $this->getConnections();
$sqlDir = $this->getSqlDir();
@ -80,7 +77,7 @@ EOT
protected function getSqlDir()
{
return sprintf('%s/propel/sql', $this->getApplication()->getKernel()->getRootDir());
return sprintf('%s/propel/sql', $this->getApplication()->getKernel()->getCacheDir());
}
/**