if ($context->
getQuery()->
hasState($alias)) { return $alias;
} $context->
getQuery()->
addState($alias);
$reference =
$field->
getReferenceDefinition();
$table =
$reference->
getEntityName();
$versionAware =
$context->
getDefinition()->
isVersionAware() &&
$reference->
isVersionAware();
$source =
$this->
getSourceColumn($context->
getDefinition(),
$field,
$context->
getAlias(),
$context->
getContext());
$referenceColumn =
$this->
getReferenceColumn($field,
$context->
getContext());
// specified version requested, use sub version call to solve live version or specified
if ($versionAware &&
$context->
getContext()->
getVersionId() !== Defaults::LIVE_VERSION
) { $this->
joinVersion($field,
$context->
getAlias(),
$alias,
$context->
getQuery(),
$context->
getContext(),
$source,
$referenceColumn);
return $alias;
} // No Blacklisting Whitelisting for ManyToOne Association because of possible Dependencies on subentities