Skip to content

Commit

Permalink
getForeignKey => getForeignKeyName (#53)
Browse files Browse the repository at this point in the history
Fixing for laravel 5.8:
#50 #52
  • Loading branch information
Yahav authored and jafar690 committed May 30, 2019
1 parent 43c3a3d commit 70c8cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RelationFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function getRelationshipFromMethodAndModel(ReflectionMethod $method, s

if ($return instanceof BelongsTo) {
$foreignKey = $this->getParentKey($return->getQualifiedOwnerKeyName());
$localKey = $return->getForeignKey();
$localKey = $return->getForeignKeyName();
}

return [
Expand All @@ -97,4 +97,4 @@ protected function getRelationshipFromMethodAndModel(ReflectionMethod $method, s
return null;
}

}
}

0 comments on commit 70c8cf8

Please sign in to comment.