W3cubDocs

/Drupal 8

public function StatementInterface::fetchObject

public 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.

File

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

Class

StatementInterface
Represents a prepared statement.

Namespace

Drupal\Core\Database

Code

public function fetchObject();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!StatementInterface.php/function/StatementInterface::fetchObject/8.1.x