You are here

public function StatementPrefetch::__set in Drupal 9

Implements the magic __set() method.

@todo Remove the method before Drupal 10.

See also

https://www.drupal.org/i/3210310

File

core/lib/Drupal/Core/Database/StatementPrefetch.php, line 174

Class

StatementPrefetch
An implementation of StatementInterface that prefetches all data.

Namespace

Drupal\Core\Database

Code

public function __set($name, $value) {
  if ($name === 'allowRowCount') {
    @trigger_error(__CLASS__ . '::$allowRowCount should not be written in drupal:9.3.0 and will error in drupal:10.0.0. Enable row counting by passing the appropriate argument to the constructor instead. See https://www.drupal.org/node/3186368', E_USER_DEPRECATED);
    $this->rowCountEnabled = $value;
  }
}