Fix an error that PopulateCommand would always ignore errors
This commit is contained in:
parent
cb7b4c1dca
commit
47785260a4
2 changed files with 8 additions and 7 deletions
|
|
@ -70,16 +70,15 @@ class PopulateCommand extends ContainerAwareCommand
|
|||
}
|
||||
|
||||
/**
|
||||
* @see Symfony\Component\Console\Command\Command::execute()
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$index = $input->getOption('index');
|
||||
$type = $input->getOption('type');
|
||||
$reset = !$input->getOption('no-reset');
|
||||
$options = $input->getOptions();
|
||||
|
||||
$options['ignore-errors'] = $input->hasOption('ignore-errors');
|
||||
$index = $input->getOption('index');
|
||||
$type = $input->getOption('type');
|
||||
$reset = !$input->getOption('no-reset');
|
||||
$options = $input->getOptions();
|
||||
$options['ignore-errors'] = $input->getOption('ignore-errors');
|
||||
|
||||
if ($input->isInteractive() && $reset && $input->getOption('offset')) {
|
||||
/** @var DialogHelper $dialog */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue