From f124dc863e7249d5c52f90d65143c27dd2328950 Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Thu, 8 Dec 2022 23:12:25 +1300 Subject: [PATCH] Revert "End() should affect only one layer of Criteria (#145)" (#146) This reverts commit 306f8139e52fc2a29f16490ee86a7f46f35b4655. --- src/Criteria.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Criteria.php b/src/Criteria.php index 11850a2..4bc067c 100644 --- a/src/Criteria.php +++ b/src/Criteria.php @@ -259,7 +259,7 @@ public function end() { if ($this->parent) { $this->parent->addCriterion($this); - return $this->parent; + return $this->parent->end(); } return $this->slave; }