ContextErrorException in Parser.php line 42:
Warning: array_search() expects parameter 2 to be array, string given
//$fields = array_keys($item->_fields);
}
// Both 'id' and 'type' are always required. So remove them from $fields.
// The remaining $fields go into 'attributes'.
if (($key = array_search('id', $fields)) !== false) {
unset($fields[$key]);
}
$id = $item->getId();
$values = [
When using fields[{ct}] i get following error: