public function getRelatedModel() {
        if ($model = $this->_relatedModel) {
            return $model;
        }

        $class = $this->getRelatedClass();

        $this->setRelatedModel(new $class());

        return $this->_relatedModel;
    }
public function getRelatedModel() {
        if ($model = $this->_relatedModel) {
            return $model;
        }

        $class = $this->getRelatedClass();

        $this->setRelatedModel(new $class());

        return $this->_relatedModel;
    }
public function getRelatedModel ( ) { if ( $ model = $ this -> _relatedModel ) { return $ model ; } $ class = $ this -> getRelatedClass ( ) ; $ this -> setRelatedModel ( new $ class ( ) ) ; return $ this -> _relatedModel ; }
Return a related model object.

@return \Titon\Model\Model
Return a related model object .