function StatementWrapper::__call
Implements the magic __call() method.
Deprecated
in drupal:9.1.0 and is removed from drupal:10.0.0. Access the client-level statement object via ::getClientStatement().
See also
https://www.drupal.org/node/3177488
File
-
core/
lib/ Drupal/ Core/ Database/ StatementWrapper.php, line 98
Class
- StatementWrapper
- Implementation of StatementInterface encapsulating PDOStatement.
Namespace
Drupal\Core\DatabaseCode
public function __call($method, $arguments) {
if (is_callable([
$this->getClientStatement(),
$method,
])) {
@trigger_error("StatementWrapper::{$method} should not be called in drupal:9.1.0 and will error in drupal:10.0.0. Access the client-level statement object via ::getClientStatement(). See https://www.drupal.org/node/3177488", E_USER_DEPRECATED);
return call_user_func_array([
$this->getClientStatement(),
$method,
], $arguments);
}
throw new \BadMethodCallException($method);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.