Skip to content

Commit

Permalink
Merge pull request #267 from alcaeus/fix-non-interactive-fixture-loading
Browse files Browse the repository at this point in the history
Fix fixture loading in non-interactive mode
  • Loading branch information
alcaeus authored Nov 26, 2018
2 parents 0b0fba5 + 4310d4b commit 0438f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/LoadDataFixturesDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$em = $doctrine->getManager($input->getOption('em'));

if (!$input->getOption('append')) {
if (!$ui->confirm('Careful, database will be purged. Do you want to continue?', false)) {
if (!$ui->confirm('Careful, database will be purged. Do you want to continue?', !$input->isInteractive())) {
return;
}
}
Expand Down

0 comments on commit 0438f8d

Please sign in to comment.