RepositoryQuery: Add method __clone()

This commit is contained in:
Johannes Meyer 2015-12-03 13:54:38 +01:00
parent 5be48fc923
commit acf732e760
1 changed files with 9 additions and 0 deletions

View File

@ -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
* *