StatementWrapperIterator::$defaultFetchMode

Holds the default fetch mode.

Type: defaultFetchMode

Deprecated

in drupal:11.2.0 and is removed from drupal:12.0.0. Use $fetchMode instead.

See also

https://www.drupal.org/node/3510455

File

core/lib/Drupal/Core/Database/StatementWrapperIterator.php, line 22

Class

StatementWrapperIterator
StatementInterface iterator implementation.

Namespace

Drupal\Core\Database

Code

protected FetchAs $defaultFetchMode = FetchAs::Object;

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