Skip to content

Commit 80ee1fd

Browse files
Update MakeMigration.php
Add parameter for nowdoc
1 parent c86da84 commit 80ee1fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Maker/MakeMigration.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
7474

7575
$command
7676
->addOption('formatted', null, InputOption::VALUE_NONE, 'Format the generated SQL')
77+
->addOption('nowdoc', null, InputOption::VALUE_NONE, 'Use nowdoc format for generated SQL')
7778
->addOption('configuration', null, InputOption::VALUE_OPTIONAL, 'The path of doctrine configuration file')
7879
;
7980
}
@@ -99,6 +100,10 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
99100
$options[] = '--formatted';
100101
}
101102

103+
if ($input->getOption('nowdoc')) {
104+
$options[] = '--nowdoc';
105+
}
106+
102107
if (null !== $configuration = $input->getOption('configuration')) {
103108
$options[] = '--configuration='.$configuration;
104109
}

0 commit comments

Comments
 (0)