Skip to content

Commit b19ee7a

Browse files
committed
fix joining morph relations
1 parent 3fd8339 commit b19ee7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ protected function addSearchClauses(
133133

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

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

0 commit comments

Comments
 (0)