function Query::__wakeup

Implements the magic __wakeup function to reconnect to the database.

File

includes/database/query.inc, line 352

Class

Query
Base class for query builders.

Code

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.