Allow to configure sql/migrations dir (#459)

This commit is contained in:
Gregor Harlan 2017-08-31 12:26:56 +02:00 committed by Marc J. Schmidt
commit 59f3b4a738
9 changed files with 28 additions and 9 deletions

View file

@ -54,7 +54,7 @@ class MigrationDiffCommand extends WrappedCommand
*/
protected function getSubCommandArguments(InputInterface $input)
{
$defaultOutputDir = $this->getApplication()->getKernel()->getRootDir().'/propel/migrations';
$defaultOutputDir = $this->getContainer()->getParameter('propel.configuration')['paths']['migrationDir'];
return array(
'--connection' => $this->getConnections($input->getOption('connection')),