lithium\data\source\MongoDb::__destruct()
Overrides
lithium\data\Source::__destruct()
Destructor. Ensures that the server connection is closed and resources are freed when the adapter instance is destroyed.
Returns
voidSource
public function __destruct() {
if ($this->_isConnected) {
$this->disconnect();
}
}