} public function testVersionConstraintWithVersionedReferenceToVersionedEntity(): void
{ // Document itself is not versioned, but has a versioned reference on the versioned order
$documentDefinition =
$this->definitionInstanceRegistry->
get(DocumentDefinition::
class);
$orderDefinition =
$this->definitionInstanceRegistry->
get(OrderDefinition::
class);
$documentAssociationField =
$documentDefinition->
getField('order'
);
static::
assertNotNull($documentAssociationField);
$resolverContext =
new FieldResolverContext( '',
'document',
$documentAssociationField,
$documentDefinition,
$orderDefinition,
$this->queryBuilder,
$this->context,
null,
);
$this->resolver->
join($resolverContext);