function SqlBase::fetchNextBatch

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::fetchNextBatch()
  2. 8.9.x core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::fetchNextBatch()
  3. 10 core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::fetchNextBatch()

Prepares query for the next set of data from the source database.

1 call to SqlBase::fetchNextBatch()
SqlBase::fetchNextRow in core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
Position the iterator to the following row.

File

core/modules/migrate/src/Plugin/migrate/source/SqlBase.php, line 369

Class

SqlBase
Sources whose data may be fetched via a database connection.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

protected function fetchNextBatch() {
    $this->batch++;
    unset($this->iterator);
    $this->getIterator()
        ->rewind();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.