array_keys($parameters),
array_values($parameters),
'#source# = #alias#.#reference_column# '
.
$this->
buildMappingVersionWhere($field,
$context->
getDefinition()) ) );
$parameters =
[ '#mapping#' => EntityDefinitionQueryHelper::
escape($mappingAlias),
'#source_column#' => EntityDefinitionQueryHelper::
escape($field->
getMappingReferenceColumn()),
'#alias#' => EntityDefinitionQueryHelper::
escape($alias),
'#reference_column#' =>
$this->
getReferenceColumn($context,
$field),
];
$context->
getQuery()->
leftJoin( EntityDefinitionQueryHelper::
escape($mappingAlias),
EntityDefinitionQueryHelper::
escape($field->
getToManyReferenceDefinition()->
getEntityName()),
EntityDefinitionQueryHelper::
escape($alias),
str_replace( array_keys($parameters),
array_values($parameters),
'#mapping#.#source_column# = #alias#.#reference_column# '
.
$this->
buildVersionWhere($field->
getToManyReferenceDefinition(),
$field) )