Skip to content

Commit

Permalink
Merge pull request #3 from bashkarev/master
Browse files Browse the repository at this point in the history
fix error scopes
  • Loading branch information
Sammaye committed Apr 26, 2016
2 parents 9dd08b4 + 7664d04 commit 779458e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 779458e

Please sign in to comment.