/** * Destructor. Closes connection to the database. * */ function __destruct() { if ($this->_transactionStarted) { $null = null; $this->rollback($null); } $this->close(); parent::__destruct(); }
/** * Used for storing in cache the results of the in-memory methodCache */ public function __destruct() { if ($this->_methodCacheChange) { Cache::write('method_cache', static::$methodCache, '_cake_core_'); } parent::__destruct(); }
/** * Destructor. Closes connection to the database. * */ function __destruct() { $this->close(); parent :: __destruct(); }