function StatementInterface::fetchObject

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::fetchObject()
  2. 10 core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::fetchObject()
  3. 11.x core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::fetchObject()

Fetches the next row and returns it as an object.

The object will be of the class specified by StatementInterface::setFetchMode() or stdClass if not specified.

2 methods override StatementInterface::fetchObject()
StatementEmpty::fetchObject in core/lib/Drupal/Core/Database/StatementEmpty.php
Fetches the next row and returns it as an object.
StatementPrefetch::fetchObject in core/lib/Drupal/Core/Database/StatementPrefetch.php
Fetches the next row and returns it as an object.

File

core/lib/Drupal/Core/Database/StatementInterface.php, line 131

Class

StatementInterface
Represents a prepared statement.

Namespace

Drupal\Core\Database

Code

public function fetchObject();

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