function Connection::__destruct
Ensures that the client connection can be garbage collected.
Overrides Connection::__destruct
File
-
core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Connection.php, line 239
Class
- Connection
- MySQL implementation of \Drupal\Core\Database\Connection.
Namespace
Drupal\mysql\Driver\Database\mysqlCode
public function __destruct() {
if ($this->needsCleanup) {
$this->nextIdDelete();
}
parent::__destruct();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.