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

@ -47,7 +47,7 @@ class SqlBuildCommand extends WrappedCommand
*/
protected function getSubCommandArguments(InputInterface $input)
{
$defaultSqlDir = sprintf('%s/propel/sql', $this->getApplication()->getKernel()->getRootDir());
$defaultSqlDir = $this->getContainer()->getParameter('propel.configuration')['paths']['sqlDir'];
return array(
'--connection' => $this->getConnections($input->getOption('connection')),