Exemple #1
0
 /**
  * This function assists with freeing, releasing, and resetting unmanaged
  * resources.
  *
  * @access public
  * @override
  * @param boolean $disposing                    whether managed resources can be disposed
  *                                              in addition to unmanaged resources
  */
 public function dispose($disposing = TRUE)
 {
     if (!$this->disposed) {
         unset($this->adaptors);
         unset($this->aliases);
         unset($this->fields);
         unset($this->relations);
         if ($disposing) {
             GC::collect();
         }
         $this->disposed = TRUE;
     }
 }