function FetchModeTrait::assocToObj
Same name in other branches
- 10 core/lib/Drupal/Core/Database/FetchModeTrait.php \Drupal\Core\Database\FetchModeTrait::assocToObj()
Converts a row of data in FETCH_ASSOC format to FETCH_OBJ.
Parameters
array $rowAssoc: A row of data in FETCH_ASSOC format.
Return value
object The row in FETCH_OBJ format.
File
-
core/
lib/ Drupal/ Core/ Database/ FetchModeTrait.php, line 67
Class
- FetchModeTrait
- Provide helper methods for statement fetching.
Namespace
Drupal\Core\DatabaseCode
protected function assocToObj(array $rowAssoc) : \stdClass {
return (object) $rowAssoc;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.