Skip to content

Commit

Permalink
issue BabDev#23 Hints are not copied when the original query is clone…
Browse files Browse the repository at this point in the history
…d in DoctrineORMAdapter
  • Loading branch information
acasademont committed Sep 26, 2011
1 parent 35382a4 commit bac747f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Pagerfanta/Adapter/DoctrineORMAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ private function cloneQuery(Query $query)
/* @var $cloneQuery Query */
$cloneQuery = clone $query;
$cloneQuery->setParameters($query->getParameters());
foreach($query->getHints() as $name => $value) {
$cloneQuery->setHint($name, $value);
}

return $cloneQuery;
}
Expand Down

0 comments on commit bac747f

Please sign in to comment.