Skip to content

Commit

Permalink
Merge pull request #107 from superdav42/master
Browse files Browse the repository at this point in the history
Clone the parameters too since they are an object
  • Loading branch information
polc authored Sep 15, 2017
2 parents 94b391f + 4e0b0bd commit a03bbd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Helper
public static function cloneQuery(Query $query)
{
$clonedQuery = clone $query;
$clonedQuery->setParameters($query->getParameters());
$clonedQuery->setParameters(clone $query->getParameters());
// attach hints
foreach ($query->getHints() as $name => $hint) {
$clonedQuery->setHint($name, $hint);
Expand Down

0 comments on commit a03bbd8

Please sign in to comment.