lib/components/dataInterface/connectors/generic/DataSource.php
public function getKeyTranslation(Model $foreignObject, $key = null)
    {
        if (isset($key)) {
            return $this->internalGetKeyTranslation($foreignObject, $key);
        }

        foreach ($this->keys as $keyName => $keyField) {
            if (!empty($foreignObject->{$keyField})) {
                $key = $this->generateKey($foreignObject, $keyName, $foreignObject->{$keyField});
                $result = $this->internalGetKeyTranslation($foreignObject, $key);
                if (!empty($result)) {
                    return $result;
                }
            }
        }

        return false;
    }
public function getKeyTranslation(Model $foreignObject, $key = null)
    {
        if (isset($key)) {
            return $this->internalGetKeyTranslation($foreignObject, $key);
        }

        foreach ($this->keys as $keyName => $keyField) {
            if (!empty($foreignObject->{$keyField})) {
                $key = $this->generateKey($foreignObject, $keyName, $foreignObject->{$keyField});
                $result = $this->internalGetKeyTranslation($foreignObject, $key);
                if (!empty($result)) {
                    return $result;
                }
            }
        }

        return false;
    }
Get key translation.

@param cascade\components\dataInterface\connectors\generic\Model $foreignObject [[@doctodo param_description:foreignObject]]
@param [[@doctodo param_type:key]]                               $key           [[@doctodo param_description:key]] [optional]

@return [[@doctodo return_type:getKeyTranslation]] [[@doctodo return_description:getKeyTranslation]]