lib/components/dataInterface/connectors/file/Module.php
public function getForeignModels()
    {
        if (is_null($this->_models)) {
            $this->_models = [];
            foreach ($this->sourceFiles as $sourceFile) {
                $modelName = $this->getForeignModelName($sourceFile->id);
                $this->_models[$modelName] = Yii::createObject($this->getForeignModelConfig($sourceFile, $modelName));
            }
        }

        return $this->_models;
    }
public function getForeignModels()
    {
        if (is_null($this->_models)) {
            $this->_models = [];
            foreach ($this->sourceFiles as $sourceFile) {
                $modelName = $this->getForeignModelName($sourceFile->id);
                $this->_models[$modelName] = Yii::createObject($this->getForeignModelConfig($sourceFile, $modelName));
            }
        }

        return $this->_models;
    }
public function getForeignModels ( ) { if ( is_null ( $ this -> _models ) ) { $ this -> _models = [ ] ; foreach ( $ this -> sourceFiles as $ sourceFile ) { $ modelName = $ this -> getForeignModelName ( $ sourceFile -> id ) ; $ this -> _models [ $ modelName ] = Yii :: createObject ( $ this -> getForeignModelConfig ( $ sourceFile , $ modelName ) ) ; } } return $ this -> _models ; }
Get foreign models.

@return [[@doctodo return_type:getForeignModels]] [[@doctodo return_description:getForeignModels]]
Get foreign models .