function PdoResult::fetchAll

Overrides ResultBase::fetchAll

File

core/lib/Drupal/Core/Database/Statement/PdoResult.php, line 70

Class

PdoResult
Class for PDO-provided results of a data query language (DQL) statement.

Namespace

Drupal\Core\Database\Statement

Code

public function fetchAll(FetchAs $mode, array $fetchOptions) : array {
    return $this->clientFetchAll($mode, $fetchOptions['column'] ?? $fetchOptions['class'] ?? NULL, $fetchOptions['constructor_args'] ?? NULL);
}

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