Skip to content

Commit

Permalink
Merge pull request #60 from tonystatic/master
Browse files Browse the repository at this point in the history
Fix getRelatedKey() in BelongsToSortedMany.php
  • Loading branch information
boxfrommars authored Nov 27, 2018
2 parents 6c44903 + 7f6622b commit 7f77193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rutorika/Sortable/BelongsToSortedMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(Builder $query, Model $parent, $table, $foreignPivot

public function getRelatedKey()
{
return $this->relatedKey;
return $this->relatedPivotKey;
}

public function getForeignKey()
Expand Down

0 comments on commit 7f77193

Please sign in to comment.