Doctrine/ORM/Filter/Listener/PrivateSharingSubscriber.php
private function getAssociationColumnName(ClassMetadata $meta, $fieldName)
    {
        $mapping = $meta->getAssociationMapping($fieldName);

        return current($mapping['joinColumnFieldNames']);
    }
private function getAssociationColumnName(ClassMetadata $meta, $fieldName)
    {
        $mapping = $meta->getAssociationMapping($fieldName);

        return current($mapping['joinColumnFieldNames']);
    }
private function getAssociationColumnName ( ClassMetadata $ meta , $ fieldName ) { $ mapping = $ meta -> getAssociationMapping ( $ fieldName ) ; return current ( $ mapping [ 'joinColumnFieldNames' ] ) ; }
Get the column name of association field name.

@param ClassMetadata $meta      The class metadata
@param string        $fieldName The field name

@return string
Get the column name of association field name .