WebUser::loadModel PHP Method

loadModel() public method

Loads the user model for the logged in user.
public loadModel ( ) : User
return User the model.
    public function loadModel()
    {
        if (isset($this->_model)) {
            return $this->_model;
        } else {
            if ($this->isGuest) {
                return null;
            }
            return null;
            // todo: fix this in the build by adding a fixture.
            //return $this->_model = User::model()->findByPk($this->id);
        }
    }