StatementIteratorTrait::$resultsetKey

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Database/StatementIteratorTrait.php \Drupal\Core\Database\StatementIteratorTrait::resultsetKey

The key of the current row.

This keeps the index of rows fetched from the underlying statement. It is set to -1 when no rows have been fetched yet.

Type: resultsetKey

File

core/lib/Drupal/Core/Database/StatementIteratorTrait.php, line 29

Class

StatementIteratorTrait
StatementInterface iterator trait.

Namespace

Drupal\Core\Database

Code

private int $resultsetKey = -1;

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