Fix issues with Provider's batch_size and PopulateCommand's batch_size
This commit is contained in:
parent
8d8b04ead8
commit
b6e01cd332
3 changed files with 11 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue