|
@@ -41,7 +41,7 @@ discard block |
|
|
block discarded – undo |
|
41
|
41
|
// instances, as well as the relationship instances we need for these. |
|
42
|
42
|
$instance = $this->newRelatedInstance($related); |
|
43
|
43
|
|
|
44
|
|
- $foreignPivotKey = $foreignPivotKey ?: $name . '_id'; |
|
|
44
|
+ $foreignPivotKey = $foreignPivotKey ?: $name.'_id'; |
|
45
|
45
|
|
|
46
|
46
|
$relatedPivotKey = $relatedPivotKey ?: $instance->getForeignKey(); |
|
47
|
47
|
|
|
@@ -79,7 +79,7 @@ discard block |
|
|
block discarded – undo |
|
79
|
79
|
// For the inverse of the polymorphic many-to-many relations, we will change |
|
80
|
80
|
// the way we determine the foreign and other keys, as it is the opposite |
|
81
|
81
|
// of the morph-to-many method since we're figuring out these inverses. |
|
82
|
|
- $relatedPivotKey = $relatedPivotKey ?: $name . '_id'; |
|
|
82
|
+ $relatedPivotKey = $relatedPivotKey ?: $name.'_id'; |
|
83
|
83
|
|
|
84
|
84
|
return $this->morphToSortedMany( |
|
85
|
85
|
$related, $name, $orderColumn, $table, $foreignPivotKey, |
Please login to merge, or discard this patch.