application/Espo/Core/Utils/Database/Orm/Base.php
protected function getLinkParams($linkName = null, $entityName = null, $isOrmEntityDefs = false, $returns = null)
    {
        if (!isset($linkName)) {
            $linkName = $this->getLinkName();
        }
        if (!isset($entityName)) {
            $entityName = $this->getEntityName();
        }

        $entityDefs = $this->getDefs($isOrmEntityDefs);
        $relationKeyName = $isOrmEntityDefs ? 'relations' : 'links';

        if (isset($entityDefs[$entityName]) && isset($entityDefs[$entityName][$relationKeyName][$linkName])) {
            return $entityDefs[$entityName][$relationKeyName][$linkName];
        }

        return $returns;
    }
protected function getLinkParams($linkName = null, $entityName = null, $isOrmEntityDefs = false, $returns = null)
    {
        if (!isset($linkName)) {
            $linkName = $this->getLinkName();
        }
        if (!isset($entityName)) {
            $entityName = $this->getEntityName();
        }

        $entityDefs = $this->getDefs($isOrmEntityDefs);
        $relationKeyName = $isOrmEntityDefs ? 'relations' : 'links';

        if (isset($entityDefs[$entityName]) && isset($entityDefs[$entityName][$relationKeyName][$linkName])) {
            return $entityDefs[$entityName][$relationKeyName][$linkName];
        }

        return $returns;
    }
protected function getLinkParams ( $ linkName = null , $ entityName = null , $ isOrmEntityDefs = false , $ returns = null ) { if ( ! isset ( $ linkName ) ) { $ linkName = $ this -> getLinkName ( ) ; } if ( ! isset ( $ entityName ) ) { $ entityName = $ this -> getEntityName ( ) ; } $ entityDefs = $ this -> getDefs ( $ isOrmEntityDefs ) ; $ relationKeyName = $ isOrmEntityDefs ? 'relations' : 'links' ; if ( isset ( $ entityDefs [ $ entityName ] ) && isset ( $ entityDefs [ $ entityName ] [ $ relationKeyName ] [ $ linkName ] ) ) { return $ entityDefs [ $ entityName ] [ $ relationKeyName ] [ $ linkName ] ; } return $ returns ; }
Get relation params by name for a specified entity

@param  string $linkName
@param  string $entityName
@param  bool $isOrmEntityDefs
@param  mixed $returns
@return mixed
Get relation params by name for a specified entity