public function getPrimaryModel() {
        if ($model = $this->_model) {
            return $model;
        }

        $class = $this->getPrimaryClass();

        if (!$class) {
            return null;
        }

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

        return $this->_model;
    }
public function getPrimaryModel() {
        if ($model = $this->_model) {
            return $model;
        }

        $class = $this->getPrimaryClass();

        if (!$class) {
            return null;
        }

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

        return $this->_model;
    }
public function getPrimaryModel ( ) { if ( $ model = $ this -> _model ) { return $ model ; } $ class = $ this -> getPrimaryClass ( ) ; if ( ! $ class ) { return null ; } $ this -> setPrimaryModel ( new $ class ( ) ) ; return $ this -> _model ; }
Return a primary model object.

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