public function getModel()
    {
        $modelData = is_resource($this->model_data)
            ? stream_get_contents($this->model_data)
            : $this->model_data;

        $model = new $this->versionable_type();
        $model->unguard();
        $model->fill(unserialize($modelData));
        $model->exists = true;
        $model->reguard();
        return $model;
    }
public function getModel()
    {
        $modelData = is_resource($this->model_data)
            ? stream_get_contents($this->model_data)
            : $this->model_data;

        $model = new $this->versionable_type();
        $model->unguard();
        $model->fill(unserialize($modelData));
        $model->exists = true;
        $model->reguard();
        return $model;
    }
public function getModel ( ) { $ modelData = is_resource ( $ this -> model_data ) ? stream_get_contents ( $ this -> model_data ) : $ this -> model_data ; $ model = new $ this -> versionable_type ( ) ; $ model -> unguard ( ) ; $ model -> fill ( unserialize ( $ modelData ) ) ; $ model -> exists = true ; $ model -> reguard ( ) ; return $ model ; }
Return the versioned model
@return Model
Return the versioned model