Skip to content

Commit

Permalink
Fix getRelatedKey() in BelongsToSortedMany.php
Browse files Browse the repository at this point in the history
Make it possible for belongsToSortedMany relation to work with SortableController
  • Loading branch information
tonystatic authored Apr 4, 2018
1 parent d99db0a commit 7f6622b
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 7f6622b

Please sign in to comment.