RepositoryQuery: Add method __clone()
This commit is contained in:
parent
5be48fc923
commit
acf732e760
|
@ -64,6 +64,15 @@ class RepositoryQuery implements QueryInterface, SortRules, FilterColumns, Itera
|
||||||
$this->repository = $repository;
|
$this->repository = $repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clone all state relevant properties of this query
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->query = clone $this->query;
|
||||||
|
$this->iterator = clone $this->iterator;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the real query being used
|
* Return the real query being used
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue