public function getModel()
    {
        if ($this->_model === null) {
            $this->_model = Nav::findOne($this->navId);
            
            if (empty($this->_model)) {
                throw new Exception('The model active record could not be found for the corresponding nav item. Maybe you have inconsistent Database data.');
            }
        }
        
        return $this->_model;
    }
public function getModel()
    {
        if ($this->_model === null) {
            $this->_model = Nav::findOne($this->navId);
            
            if (empty($this->_model)) {
                throw new Exception('The model active record could not be found for the corresponding nav item. Maybe you have inconsistent Database data.');
            }
        }
        
        return $this->_model;
    }
public function getModel ( ) { if ( $ this -> _model === null ) { $ this -> _model = Nav :: findOne ( $ this -> navId ) ; if ( empty ( $ this -> _model ) ) { throw new Exception ( 'The model active record could not be found for the corresponding nav item. Maybe you have inconsistent Database data.' ) ; } } return $ this -> _model ; }
Get the ActiveRecord Model for the current Nav Model.

@throws \luya\cms\Exception
@return \luya\cms\models\Nav Returns the {{\luya\cms\models\Nav}} object for the current navigation item.
Get the ActiveRecord Model for the current Nav Model .