Skip to content

Commit

Permalink
Revert "End() should affect only one layer of Criteria (#145)" (#146)
Browse files Browse the repository at this point in the history
This reverts commit 306f813.
  • Loading branch information
unclecheese authored Dec 8, 2022
1 parent 306f813 commit f124dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Criteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function end()
{
if ($this->parent) {
$this->parent->addCriterion($this);
return $this->parent;
return $this->parent->end();
}
return $this->slave;
}
Expand Down

0 comments on commit f124dc8

Please sign in to comment.