SimpleQuery: Deep clone the filter when cloning the query

This commit is contained in:
Johannes Meyer 2015-06-24 14:33:11 +02:00
parent 31064a0dc5
commit 9595809dfa
2 changed files with 9 additions and 0 deletions

View File

@ -381,6 +381,7 @@ class DbQuery extends SimpleQuery
public function __clone()
{
parent::__clone();
$this->select = clone $this->select;
}

View File

@ -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;
}
}