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'
);
} if (!
$field->
is(Inherited::
class)) { return EntityDefinitionQueryHelper::
escape($root) . '.' . EntityDefinitionQueryHelper::
escape($field->
getStorageName());
} if (!
$context->
considerInheritance()) { return EntityDefinitionQueryHelper::
escape($root) . '.' . EntityDefinitionQueryHelper::
escape($field->
getStorageName());
} $inherited = EntityDefinitionQueryHelper::
escape($root) . '.' . EntityDefinitionQueryHelper::
escape($field->
getPropertyName());
$fk =
$definition->
getFields()->
getByStorageName($field->
getStorageName());
if (!
$fk) { throw new \
RuntimeException(sprintf('Can not find foreign key for table column %s.%s',
$definition->
getEntityName(),
$field->
getStorageName()));
}