function Query::__wakeup
Same name in other branches
- 7.x includes/database/query.inc \Query::__wakeup()
- 9 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::__wakeup()
- 10 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::__wakeup()
- 11.x core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::__wakeup()
Implements the magic __wakeup function to reconnect to the database.
File
-
core/
lib/ Drupal/ Core/ Database/ Query/ Query.php, line 95
Class
- Query
- Base class for query builders.
Namespace
Drupal\Core\Database\QueryCode
public function __wakeup() {
$this->connection = Database::getConnection($this->connectionTarget, $this->connectionKey);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.