* @internal This method should not be called directly.
*/
publicfunctionrewind():void{
// Nothing to do: our DatabaseStatement can't be rewound. Error out when
// attempted.
// @todo convert the error to an exception in Drupal 11.
if($this->resultsetKey>=0){
trigger_error('Attempted rewinding a StatementInterface object when fetching has already started. Refactor your code to avoid rewinding statement objects.',E_USER_WARNING);
Changes for core/lib/Drupal/Core/Database/StatementPrefetch.php: 7 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -2,6 +2,8 @@
namespaceDrupal\Core\Database;
@trigger_error('\Drupal\Core\Database\StatementPrefetch is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Database\StatementPrefetchIterator instead. See https://www.drupal.org/node/3265938',E_USER_DEPRECATED);
Changes for core/lib/Drupal/Core/Database/StatementWrapper.php: 7 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -7,8 +7,15 @@
// cSpell:ignore maxlen driverdata INOUT
@trigger_error('\Drupal\Core\Database\StatementWrapper is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Database\StatementWrapperIterator instead. See https://www.drupal.org/node/3265938',E_USER_DEPRECATED);
/**
* Implementation of StatementInterface encapsulating PDOStatement.
*
* @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use