function StatementEmpty::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.

Overrides StatementInterface::fetchObject

File

core/lib/Drupal/Core/Database/StatementEmpty.php, line 71

Class

StatementEmpty
Empty implementation of a database statement.

Namespace

Drupal\Core\Database

Code

public function fetchObject() {
  return NULL;
}

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