Skip to content

Commit fd8ec0b

Browse files
author
Marius
committed
remove relations from response
1 parent e0250f9 commit fd8ec0b

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,6 @@ Json Response:
368368
"sortable": [
369369
"ID",
370370
"roleID"
371-
],
372-
"relations": [
373-
"roleRelation"
374371
]
375372
}
376373
}

src/Decorators/AbstractResourceDecorator.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ public function getResourceName(): string
3131
return $this->resourceModel::resourceName();
3232
}
3333

34-
public function getRelations(): array
35-
{
36-
return \array_keys($this->getRelationMappings());
37-
}
38-
3934
public function decorateSortableIndexes(array $listResponse): array
4035
{
4136
$indexedSortable = [];

src/Http/Middleware/Decorators/AbstractDecoratorMiddleware.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ protected function getListNewContent(Request $request, array $content, array $co
205205

206206
$newContent['filterable'] = $this->decorator->getFilters();
207207
$newContent['sortable'] = $indexedSortable ?? $this->decorator->getFilters();
208-
$newContent['relations'] = $this->decorator->getRelations();
209208

210209
return $newContent;
211210
}

0 commit comments

Comments
 (0)