function SqlBase::fetchNextRow
Same name in other branches
- 9 core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::fetchNextRow()
- 8.9.x core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::fetchNextRow()
- 11.x core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::fetchNextRow()
Position the iterator to the following row.
Overrides SourcePluginBase::fetchNextRow
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ source/ SqlBase.php, line 357
Class
- SqlBase
- Sources whose data may be fetched via a database connection.
Namespace
Drupal\migrate\Plugin\migrate\sourceCode
protected function fetchNextRow() {
$this->getIterator()
->next();
// We might be out of data entirely, or just out of data in the current
// batch. Attempt to fetch the next batch and see.
if ($this->batchSize > 0 && !$this->getIterator()
->valid()) {
$this->fetchNextBatch();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.