if ($field instanceof TranslationsAssociationField
) { $nested->
setLimit(null
);
} } } if (isset($payload['fields'
])) { $criteria->
addFields($payload['fields'
]);
} $searchException->
tryToThrow();
$this->validator->
validate($definition->
getEntityName(),
$criteria,
$context);
return $criteria;
} /**
* @param list<array{order: string, type: string, field: string}> $sorting
*
* @return list<FieldSorting>
*/