Skip to content

Commit

Permalink
Remove duplicate code.
Browse files Browse the repository at this point in the history
These properties are cloned by Database\Query.
  • Loading branch information
markstory committed Oct 18, 2015
1 parent 426af95 commit 5a5b588
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ORM/Query.php
Expand Up @@ -653,10 +653,7 @@ public function applyOptions(array $options)
public function cleanCopy()
{
$clone = clone $this;
$clone->_iterator = null;
$clone->triggerBeforeFind();
$clone->eagerLoader(clone $this->eagerLoader());
$clone->valueBinder(clone $this->valueBinder());
$clone->autoFields(false);
$clone->limit(null);
$clone->order([], true);
Expand Down

0 comments on commit 5a5b588

Please sign in to comment.