Skip to content

Commit

Permalink
fix joining morph relations
Browse files Browse the repository at this point in the history
  • Loading branch information
jarektkaczyk committed Sep 1, 2016
1 parent 3fd8339 commit b19ee7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected function addSearchClauses(

// For morphOne/morphMany support we need to port the bindings from JoinClauses.
$joinBindings = collect($subquery->getQuery()->joins)->flatMap(function ($join) {
$join->getBindings();
return $join->getBindings();
})->all();

$this->addBinding($joinBindings, 'select');
Expand Down

0 comments on commit b19ee7a

Please sign in to comment.