@@ -38,8 +38,7 @@ |
||
38 | 38 | $fullKeyArray = explode('.', $fullKey); |
39 | 39 | |
40 | 40 | return $this->otherKey = 'pivot.' . end($fullKeyArray); |
41 | - } |
|
42 | - else if ($relation instanceof HasManyRelation) { |
|
41 | + } else if ($relation instanceof HasManyRelation) { |
|
43 | 42 | /* @var HasManyRelation $relation */ |
44 | 43 | return $this->otherKey = $relation->getRelated()->getKeyName(); |
45 | 44 | } |