We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51892f5 commit b44f5baCopy full SHA for b44f5ba
illuminate/Database/Eloquent/Relations/HasManyThrough.php
@@ -104,7 +104,7 @@ public function one()
104
$this->farParent->nowEagerLoadingRelationNameWithNoConstraints = $relationName;
105
106
return \app(HasOneThrough::class, [
107
- \tap($this->getQuery(), fn (Builder $query): array => $query->getQuery()->joins = []),
+ \tap($this->getQuery()->clone(), fn (Builder $query): array => $query->getQuery()->joins = []),
108
$this->farParent,
109
$this->throughParent,
110
$this->getFirstKeyName(),
0 commit comments