示例#1
0
 /**
  * Destructor. Closes connection to the database.
  *
  */
 function __destruct()
 {
     if ($this->_transactionStarted) {
         $null = null;
         $this->rollback($null);
     }
     $this->close();
     parent::__destruct();
 }
示例#2
0
 /**
  * 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();
 }
示例#3
0
 /**
  * Destructor. Closes connection to the database.
  *
  */
 function __destruct() {
     $this->close();
     parent :: __destruct();
 }