KnpLabs/knp-components — pull request #107 by superdav42 (2014-06-17 19:54:22+00:00)
Title: Clone the parameters too since they are an object

We need to clone the parameters for this query or the parameters could change if the original query's parameters are changed.
This is how doctrine does it.
https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Tools/Pagination/Paginator.php#L212
To bad that method isn't static.