We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 94b391f + 4e0b0bd commit a03bbd8Copy full SHA for a03bbd8
src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/Query/Helper.php
@@ -20,7 +20,7 @@ class Helper
20
public static function cloneQuery(Query $query)
21
{
22
$clonedQuery = clone $query;
23
- $clonedQuery->setParameters($query->getParameters());
+ $clonedQuery->setParameters(clone $query->getParameters());
24
// attach hints
25
foreach ($query->getHints() as $name => $hint) {
26
$clonedQuery->setHint($name, $hint);
0 commit comments