diff --git a/src/Relations/Joiner.php b/src/Relations/Joiner.php index 2363aab..4a7b0fe 100644 --- a/src/Relations/Joiner.php +++ b/src/Relations/Joiner.php @@ -194,7 +194,7 @@ protected function getJoinKeys(Relation $relation) } if ($relation instanceof BelongsTo) { - return [$relation->getQualifiedForeignKey(), $relation->getQualifiedOwnerKeyName()]; + return [$relation->getQualifiedForeignKeyName(), $relation->getQualifiedOwnerKeyName()]; } if ($relation instanceof BelongsToMany) {