|
@@ -12,12 +12,12 @@ discard block |
|
|
block discarded – undo |
|
12
|
12
|
public function hydrateHandleRevisions($object, $fields) |
|
13
|
13
|
{ |
|
14
|
14
|
// HandleRepeaters trait => getRepeaters |
|
15
|
|
- foreach($this->getRepeaters() as $repeater) { |
|
|
15
|
+ foreach ($this->getRepeaters() as $repeater) { |
|
16
|
16
|
$this->hydrateRepeater($object, $fields, $repeater['relation'], $repeater['model']); |
|
17
|
17
|
} |
|
18
|
18
|
|
|
19
|
19
|
// HandleBrowers trait => getBrowsers |
|
20
|
|
- foreach($this->getBrowsers() as $browser) { |
|
|
20
|
+ foreach ($this->getBrowsers() as $browser) { |
|
21
|
21
|
$this->hydrateBrowser($object, $fields, $browser['relation'], $browser['positionAttribute'], $browser['model']); |
|
22
|
22
|
} |
|
23
|
23
|
|
|
@@ -98,7 +98,7 @@ discard block |
|
|
block discarded – undo |
|
98
|
98
|
$relatedElementsCollection = Collection::make(); |
|
99
|
99
|
$position = 1; |
|
100
|
100
|
|
|
101
|
|
- $tableName = $object->$relationship() instanceof BelongsTo ? $object->$relationship->getTable() :$object->$relationship()->getTable(); |
|
|
101
|
+ $tableName = $object->$relationship() instanceof BelongsTo ? $object->$relationship->getTable() : $object->$relationship()->getTable(); |
|
102
|
102
|
|
|
103
|
103
|
foreach ($relatedElements as $relatedElement) { |
|
104
|
104
|
$newRelatedElement = $relationRepository->getById($relatedElement['id']); |
Please login to merge, or discard this patch.