'#alias#' => EntityDefinitionQueryHelper::
escape($alias),
'#reference_column#' =>
$referenceColumn,
];
$context->
getQuery()->
leftJoin( EntityDefinitionQueryHelper::
escape($context->
getAlias()),
EntityDefinitionQueryHelper::
escape($table),
EntityDefinitionQueryHelper::
escape($alias),
str_replace( array_keys($parameters),
array_values($parameters),
'#source# = #alias#.#reference_column#' .
$this->
buildVersionWhere($context,
$field),
),
);
return $alias;
} protected function getSourceColumn(EntityDefinition
$definition, AssociationField
$field, string
$root, Context
$context): string
{ if (!
$field instanceof ManyToOneAssociationField && !
$field instanceof OneToOneAssociationField
) { throw new \
RuntimeException('Expected field of type ManyToOneAssociationField or OneToOneAssociationField'
);
}