$fields =
$value->
getReferenceDefinition()->
getFields();
} } return $value;
} protected function resolveCriteriaForLazyLoadedRelations( EntityResolverContext
$resolverContext,
FieldConfig
$config ): ?Criteria
{ $field =
$this->
resolveDefinitionField($resolverContext->
getDefinition(),
$config->
getStringValue());
if ($field === null
) { return null;
} $key = null;
$refDef = null;
// resolve reverse side to fetch data afterwards
if ($field instanceof ManyToManyAssociationField
) { $key =
$this->
getKeyByManyToMany($field);
$refDef =
$field->
getToManyReferenceDefinition();
}