Fix bug
This commit is contained in:
parent
467239c3c1
commit
7681ec78ca
|
|
@ -72,7 +72,7 @@ trait IncludesData
|
|||
throw new BadRequestException("Invalid include [{$path}{$name}]", 'include');
|
||||
}
|
||||
|
||||
if ($type = $fields[$name]->getType()) {
|
||||
if (($type = $fields[$name]->getType()) && is_string($type)) {
|
||||
$relatedResource = $this->api->getResource($type);
|
||||
|
||||
$this->validateInclude($relatedResource, $nested, $name.'.');
|
||||
|
|
|
|||
Loading…
Reference in New Issue