Example #1
0
 /**
  * Clone a database collection.
  */
 public function __clone()
 {
     if ($this->data !== null) {
         parent::__clone();
         return;
     }
     if (is_object($this->sql)) {
         $this->sql = clone $this->sql;
     }
 }