Skip to content

Commit e4f1318

Browse files
committed
formatting
1 parent ee5a979 commit e4f1318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ protected function newHasOne(Builder $query, Model $parent, $foreignKey, $localK
115115
*/
116116
public function hasOneThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null)
117117
{
118-
$through = $this->newThroughInstance($through);
118+
$through = $this->newRelatedThroughInstance($through);
119119

120120
$firstKey = $firstKey ?: $this->getForeignKey();
121121

@@ -387,7 +387,7 @@ protected function newHasMany(Builder $query, Model $parent, $foreignKey, $local
387387
*/
388388
public function hasManyThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null)
389389
{
390-
$through = $this->newThroughInstance($through);
390+
$through = $this->newRelatedThroughInstance($through);
391391

392392
$firstKey = $firstKey ?: $this->getForeignKey();
393393

0 commit comments

Comments
 (0)