Skip to content

Commit 874a7d3

Browse files
committed
Remove getForeignKey method;
Replace the method's result with the method.
1 parent 0674ad6 commit 874a7d3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Relations/MorphToMany.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MorphToMany extends EloquentMorphToMany
3232
*/
3333
public function getHasCompareKey()
3434
{
35-
return $this->getForeignKey();
35+
return $this->foreignPivotKey;
3636
}
3737

3838
/** @inheritdoc */
@@ -369,16 +369,6 @@ public function newRelatedQuery()
369369
return $this->related->newQuery();
370370
}
371371

372-
/**
373-
* Get the fully qualified foreign key for the relation.
374-
*
375-
* @return string
376-
*/
377-
public function getForeignKey()
378-
{
379-
return $this->foreignPivotKey;
380-
}
381-
382372
/** @inheritdoc */
383373
public function getQualifiedRelatedPivotKeyName()
384374
{

0 commit comments

Comments
 (0)