diff --git a/src/Maker/MakeMigration.php b/src/Maker/MakeMigration.php index 41f1d3752..211262d3b 100644 --- a/src/Maker/MakeMigration.php +++ b/src/Maker/MakeMigration.php @@ -70,6 +70,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf ->addOption('db', null, InputOption::VALUE_REQUIRED, 'The database connection name') ->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager name') ->addOption('shard', null, InputOption::VALUE_REQUIRED, 'The shard connection name') + ->addOption('configuration', null, InputOption::VALUE_OPTIONAL, 'The path of doctrine configuration file') ; } } @@ -88,6 +89,10 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen if ($input->hasOption('shard') && null !== $input->getOption('shard')) { $options[] = '--shard='.$input->getOption('shard'); } + + if (null !== $input->getOption('configuration')) { + $options[] = '--configuration='.$input->getOption('configuration'); + } // end 2.x support $generateMigrationCommand = $this->application->find('doctrine:migrations:diff');