Search for fetchAll

  1. Search 7.x for fetchAll
  2. Search 9.5.x for fetchAll
  3. Search 8.9.x for fetchAll
  4. Search 10.3.x for fetchAll
  5. Other projects
Title Object type File name Summary
FetchLegacyTest::testQueryFetchAllAssoc function core/tests/Drupal/KernelTests/Core/Database/FetchLegacyTest.php Tests ::fetchAllAssoc().
FetchLegacyTest::testQueryFetchAllColumn function core/tests/Drupal/KernelTests/Core/Database/FetchLegacyTest.php Confirms that we can fetch all records into an array explicitly.
PdoResult::fetchAll function core/lib/Drupal/Core/Database/Statement/PdoResult.php Returns an array containing all of the result set rows.
PdoTrait::clientFetchAll function core/lib/Drupal/Core/Database/Statement/PdoTrait.php Returns an array containing all of the result set rows.
PrefetchedResult::fetchAllKeyed function core/lib/Drupal/Core/Database/Statement/PrefetchedResult.php Returns the entire result set as a single associative array.
ResultBase::fetchAll function core/lib/Drupal/Core/Database/Statement/ResultBase.php Returns an array containing all of the result set rows.
ResultBase::fetchAllAssoc function core/lib/Drupal/Core/Database/Statement/ResultBase.php Returns the result set as an associative array keyed by the given column.
ResultBase::fetchAllKeyed function core/lib/Drupal/Core/Database/Statement/ResultBase.php Returns the entire result set as a single associative array.
StatementBase::fetchAll function core/lib/Drupal/Core/Database/Statement/StatementBase.php Returns an array containing all of the result set rows.
StatementBase::fetchAllAssoc function core/lib/Drupal/Core/Database/Statement/StatementBase.php Returns the result set as an associative array keyed by the given field.
StatementBase::fetchAllKeyed function core/lib/Drupal/Core/Database/Statement/StatementBase.php Returns the entire result set as a single associative array.

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