lib/components/dataInterface/connectors/generic/DataSource.php
public function getReverseKeyTranslation($localObject)
    {
        $key = is_object($localObject) ? $localObject->primaryKey : $localObject;
        if ($this->settings['universalKey']) {
            //return KeyTranslation::findOne(['registry_id' => $key]);
            return KeyTranslation::find()->where(['registry_id' => $key])->one();
        } else {
            //return KeyTranslation::findOne(['registry_id' => $key, 'data_interface_id' => $this->module->collectorItem->interfaceObject->primaryKey]);
            return KeyTranslation::find()->where(['registry_id' => $key, 'data_interface_id' => $this->module->collectorItem->interfaceObject->primaryKey])->one();
        }
    }
public function getReverseKeyTranslation($localObject)
    {
        $key = is_object($localObject) ? $localObject->primaryKey : $localObject;
        if ($this->settings['universalKey']) {
            //return KeyTranslation::findOne(['registry_id' => $key]);
            return KeyTranslation::find()->where(['registry_id' => $key])->one();
        } else {
            //return KeyTranslation::findOne(['registry_id' => $key, 'data_interface_id' => $this->module->collectorItem->interfaceObject->primaryKey]);
            return KeyTranslation::find()->where(['registry_id' => $key, 'data_interface_id' => $this->module->collectorItem->interfaceObject->primaryKey])->one();
        }
    }
public function getReverseKeyTranslation ( $ localObject ) { $ key = is_object ( $ localObject ) ? $ localObject -> primaryKey : $ localObject ; if ( $ this -> settings [ 'universalKey' ] ) { //return KeyTranslation::findOne(['registry_id' => $key]); return KeyTranslation :: find ( ) -> where ( [ 'registry_id' => $ key ] ) -> one ( ) ; } else { //return KeyTranslation::findOne(['registry_id' => $key, 'data_interface_id' => $this->module->collectorItem->interfaceObject->primaryKey]); return KeyTranslation :: find ( ) -> where ( [ 'registry_id' => $ key , 'data_interface_id' => $ this -> module -> collectorItem -> interfaceObject -> primaryKey ] ) -> one ( ) ; } }
Get reverse key translation.

@param [[@doctodo param_type:localObject]] $localObject [[@doctodo param_description:localObject]]

@return [[@doctodo return_type:getReverseKeyTranslation]] [[@doctodo return_description:getReverseKeyTranslation]]
Get reverse key translation .