protected function reset() {
        $this->activePattern = false;
        $this->activeFilters = [];
        $this->activeTransformations = [];
        $this->insert_records = [];
        $this->set = [];
        $queryclass = get_class($this->query);
        $this->query = new $queryclass();
    }