Skip to content

Commit

Permalink
Set model in eloquent builder
Browse files Browse the repository at this point in the history
  • Loading branch information
luisdalmolin committed Mar 27, 2024
1 parent fc8bb37 commit ed5af47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PowerJoinClause.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ public function __call($name, $arguments)

$eloquentBuilder = $this->getModel()->newEloquentBuilder($this);
if (method_exists($eloquentBuilder, $name)) {
$eloquentBuilder->setModel($this->getModel());
return $eloquentBuilder->{$name}(...$arguments);
}

Expand Down

0 comments on commit ed5af47

Please sign in to comment.