private function getForeignModelInstance()
    {
        try {
            if (!$this->foreignModel) {
                $model = $this->getFullForeignModel();

                if (class_exists($model)) {
                    $this->foreignModel = new $model();
                } else {
                    $this->foreignModel = '';
                }
            }

            return $this->foreignModel;
        } catch (Exception $e) {
            return null;
        }
    }
private function getForeignModelInstance()
    {
        try {
            if (!$this->foreignModel) {
                $model = $this->getFullForeignModel();

                if (class_exists($model)) {
                    $this->foreignModel = new $model();
                } else {
                    $this->foreignModel = '';
                }
            }

            return $this->foreignModel;
        } catch (Exception $e) {
            return null;
        }
    }
private function getForeignModelInstance ( ) { try { if ( ! $ this -> foreignModel ) { $ model = $ this -> getFullForeignModel ( ) ; if ( class_exists ( $ model ) ) { $ this -> foreignModel = new $ model ( ) ; } else { $ this -> foreignModel = '' ; } } return $ this -> foreignModel ; } catch ( Exception $ e ) { return null ; } }
Gets a single instance of the foreign mode.

@return Model
Gets a single instance of the foreign mode .