public function Query::__wakeup in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 96 - Contains \Drupal\Core\Database\Query\Query.
Class
- Query
- Base class for query builders.
Namespace
Drupal\Core\Database\QueryCode
public function __wakeup() {
$this->connection = Database::getConnection($this->connectionTarget, $this->connectionKey);
}