SimpleQuery: Deep clone the filter when cloning the query
This commit is contained in:
parent
31064a0dc5
commit
9595809dfa
|
@ -381,6 +381,7 @@ class DbQuery extends SimpleQuery
|
|||
|
||||
public function __clone()
|
||||
{
|
||||
parent::__clone();
|
||||
$this->select = clone $this->select;
|
||||
}
|
||||
|
||||
|
|
|
@ -550,4 +550,12 @@ class SimpleQuery implements QueryInterface, Queryable, Iterator
|
|||
{
|
||||
return $this->columns;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deep clone self::$filter
|
||||
*/
|
||||
public function __clone()
|
||||
{
|
||||
$this->filter = clone $this->filter;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue