Skip to content

Commit fcc545c

Browse files
authored
Merge pull request #50 from masterix21/patch-1
Add ability to chain scopes
2 parents d2a5755 + dd230a1 commit fcc545c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerJoinClause.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function __call($name, $arguments)
167167
$scope = 'scope' . ucfirst($name);
168168

169169
if (method_exists($this->getModel(), $scope)) {
170-
$this->getModel()->{$scope}($this, ...$arguments);
170+
return $this->getModel()->{$scope}($this, ...$arguments);
171171
} else {
172172
throw new InvalidArgumentException(sprintf('Method %s does not exist in PowerJoinClause class', $name));
173173
}

0 commit comments

Comments
 (0)