/**
* @return array<string, mixed>
*/
public function resolve(Criteria
$criteria, EntityDefinition
$definition): array
{ if (empty($criteria->
getFields())) { return [];
} $mapped =
[];
$fields = \
array_merge($criteria->
getFields(),
$this->
resolveRuntimeField($criteria,
$definition));
foreach ($fields as $accessor) { $field = EntityDefinitionQueryHelper::
getFieldsOfAccessor($definition,
$accessor);
if (isset($field[0
]) &&
$field[0
] instanceof AssociationField
) { $criteria->
addAssociation($accessor);
} $pointer = &
$mapped;
foreach (explode('.',
$accessor) as $part) { // @phpstan-ignore-next-line