Skip to content

Commit

Permalink
Replace getForeignKey method call by getForeignKeyName
Browse files Browse the repository at this point in the history
  • Loading branch information
forxer committed Mar 11, 2019
1 parent d992d31 commit 998ec19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eloquent/JoinRelBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ protected function getRelationKeys(Relation $relation)
elseif ($relation instanceof BelongsTo) {
return [
$relation->getRelated()->getQualifiedKeyName(),
$relation->getParent()->getTable().'.'.$relation->getForeignKey()
$relation->getParent()->getTable().'.'.$relation->getForeignKeyName()
];
}

Expand Down

0 comments on commit 998ec19

Please sign in to comment.