public function __clone() { $this->sqlBuilder = clone $this->sqlBuilder; $this->sqlBuilder->setSelection($this); }