diff --git a/dibi/libs/DibiFluent.php b/dibi/libs/DibiFluent.php index 3ad43d40..84e11d8f 100644 --- a/dibi/libs/DibiFluent.php +++ b/dibi/libs/DibiFluent.php @@ -453,6 +453,17 @@ class DibiFluent extends DibiObject implements IDataSource } + + + public function __clone() + { + // remove references + foreach ($this->clauses as $clause => $val) { + $this->clauses[$clause] = & $val; + } + $this->cursor = & $foo; + } + }