Extends
lithium\core\Object
Ensures the connection is closed, before the object is destroyed.
Returns
voidSource
public function __destruct() {
if ($this->isConnected()) {
$this->disconnect();
}
}
public function __destruct() {
if ($this->isConnected()) {
$this->disconnect();
}
}