From 7664d040b1d1c260f3726e741e9d067775f7f2a1 Mon Sep 17 00:00:00 2001 From: bashkarev Date: Tue, 26 Apr 2016 15:18:10 +0300 Subject: [PATCH] fix error scopes --- Document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Document.php b/Document.php index 444aab8..b27efcb 100755 --- a/Document.php +++ b/Document.php @@ -99,7 +99,7 @@ public function __call($name, $parameters){ $scopes = $this->scopes(); if(isset($scopes[$name])){ - $this->setDbCriteria($this->getDbCriteria()->mergeWith($scopes[$name])); + $this->getDbCriteria()->mergeWith($scopes[$name]); return $this; } return parent::__call($name, $parameters);