Fix issues with Provider's batch_size and PopulateCommand's batch_size

This commit is contained in:
Tim Nagel 2015-03-27 11:45:03 +11:00
commit b6e01cd332
3 changed files with 11 additions and 1 deletions

View file

@ -91,11 +91,13 @@ class PopulateCommand extends ContainerAwareCommand
$type = $input->getOption('type');
$reset = !$input->getOption('no-reset');
$options = array(
'batch_size' => $input->getOption('batch-size'),
'ignore_errors' => $input->getOption('ignore-errors'),
'offset' => $input->getOption('offset'),
'sleep' => $input->getOption('sleep')
);
if ($input->getOption('batch-size')) {
$options['batch_size'] = (int) $input->getOption('batch-size');
}
if ($input->isInteractive() && $reset && $input->getOption('offset')) {
/** @var DialogHelper $dialog */