Search for fetchObject

  1. Search 7.x for fetchObject
  2. Search 9.5.x for fetchObject
  3. Search 8.9.x for fetchObject
  4. Search 10.3.x for fetchObject
  5. Other projects
Title Object type File name Summary
CommentStatisticsUnitTest::fetchObjectCallback function core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php Return value callback for fetchObject() function on mocked object.
FetchTest::testQueryFetchObject function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a record to an object explicitly.
FetchTest::testQueryFetchObjectClass function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a record into a class using fetchObject.
FetchTest::testQueryFetchObjectClassNoConstructorArgs function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a record into a class without constructor args.
StatementInterface::fetchObject function core/lib/Drupal/Core/Database/StatementInterface.php Fetches the next row and returns it as an object.
StatementPrefetchIterator::fetchObject function core/lib/Drupal/Core/Database/StatementPrefetchIterator.php Fetches the next row and returns it as an object.
StatementWrapperIterator::fetchObject function core/lib/Drupal/Core/Database/StatementWrapperIterator.php Fetches the next row and returns it as an object.

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