$this->resolver->
join($resolverContext);
static::
assertSame([ '`document`' =>
[ [ 'joinType' => 'left',
'joinTable' => '`order`',
'joinAlias' => '`document.order`',
'joinCondition' => '`document`.`order_id` = `document.order`.`id` AND `document`.`order_version_id` = `document.order`.`version_id`',
],
],
],
$this->queryBuilder->
getQueryPart('join'
));
} public function testVersionConstraintWithReferenceToNonVersionedEntity(): void
{ // Document and document type are not versioned, thus also document cannot have a versioned reference to its type
$documentDefinition =
$this->definitionInstanceRegistry->
get(DocumentDefinition::
class);
$documentTypeDefinition =
$this->definitionInstanceRegistry->
get(DocumentTypeDefinition::
class);
$documentAssociationField =
$documentDefinition->
getField('documentType'
);
static::
assertNotNull($documentAssociationField);
$resolverContext =
new FieldResolverContext(