Skip to content

Commit

Permalink
Merge pull request #13 from OzanKurt/patch-1
Browse files Browse the repository at this point in the history
5.8 BelongsTo Relation fix
  • Loading branch information
jarektkaczyk authored Apr 22, 2019
2 parents 1294901 + 02bd8cf commit 46f885c
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 46f885c

Please sign in to comment.