Skip to content

Commit

Permalink
Update Joiner.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OzanKurt committed Mar 21, 2019
1 parent 1294901 commit 02bd8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Relations/Joiner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 02bd8cf

Please sign in to comment.