You are here

public function Query::__sleep in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::__sleep()

Implements the magic __sleep function to disconnect from the database.

File

core/lib/Drupal/Core/Database/Query/Query.php, line 87
Contains \Drupal\Core\Database\Query\Query.

Class

Query
Base class for query builders.

Namespace

Drupal\Core\Database\Query

Code

public function __sleep() {
  $keys = get_object_vars($this);
  unset($keys['connection']);
  return array_keys($keys);
}