Skip to content

Commit b44f5ba

Browse files
author
Admin
committed
1 parent 51892f5 commit b44f5ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

illuminate/Database/Eloquent/Relations/HasManyThrough.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function one()
104104
$this->farParent->nowEagerLoadingRelationNameWithNoConstraints = $relationName;
105105

106106
return \app(HasOneThrough::class, [
107-
\tap($this->getQuery(), fn (Builder $query): array => $query->getQuery()->joins = []),
107+
\tap($this->getQuery()->clone(), fn (Builder $query): array => $query->getQuery()->joins = []),
108108
$this->farParent,
109109
$this->throughParent,
110110
$this->getFirstKeyName(),

0 commit comments

Comments
 (0)