application/Espo/Core/Utils/Database/Orm/RelationManager.php
private function getForeignLink($parentLinkName, $parentLinkParams, $currentEntityDefs)
    {
        if (isset($parentLinkParams['foreign']) && isset($currentEntityDefs['links'][$parentLinkParams['foreign']])) {
            return array(
                'name' => $parentLinkParams['foreign'],
                'params' => $currentEntityDefs['links'][$parentLinkParams['foreign']],
            );
        }

        return false;
    }
private function getForeignLink($parentLinkName, $parentLinkParams, $currentEntityDefs)
    {
        if (isset($parentLinkParams['foreign']) && isset($currentEntityDefs['links'][$parentLinkParams['foreign']])) {
            return array(
                'name' => $parentLinkParams['foreign'],
                'params' => $currentEntityDefs['links'][$parentLinkParams['foreign']],
            );
        }

        return false;
    }
private function getForeignLink ( $ parentLinkName , $ parentLinkParams , $ currentEntityDefs ) { if ( isset ( $ parentLinkParams [ 'foreign' ] ) && isset ( $ currentEntityDefs [ 'links' ] [ $ parentLinkParams [ 'foreign' ] ] ) ) { return array ( 'name' => $ parentLinkParams [ 'foreign' ] , 'params' => $ currentEntityDefs [ 'links' ] [ $ parentLinkParams [ 'foreign' ] ] , ) ; } return false ; }
Get foreign Link

@param string $parentLinkName
@param array $parentLinkParams
@param array $currentEntityDefs

@return array - in format array('name', 'params')
Get foreign Link