private function getSourceColumn(AssociationField
$association, Context
$context): string
{ if ($association->
is(Inherited::
class) &&
$context->
considerInheritance()) { return EntityDefinitionQueryHelper::
escape($association->
getPropertyName());
} if ($association instanceof ManyToOneAssociationField ||
$association instanceof OneToOneAssociationField
) { return EntityDefinitionQueryHelper::
escape($association->
getStorageName());
} if ($association instanceof OneToManyAssociationField
) { return EntityDefinitionQueryHelper::
escape($association->
getLocalField());
} if ($association instanceof ManyToManyAssociationField
) { return EntityDefinitionQueryHelper::
escape($association->
getLocalField());
} throw new \
RuntimeException(sprintf('Unknown association class provided %s',
$association::
class));
}}