public function clear()
    {
        $lastQuery = $this->query;
        $this->query = new Query($this->error, $lastQuery->getInitializer());
        $this->query->forceLimit($lastQuery->getLimit());
        $this->query->forceOffset($lastQuery->getOffset());

        if (!is_array($lastQuery->getResultDataType())) {
            $this->query->setResultDataType($lastQuery->getResultDataType());
        }

        return $this;
    }
public function clear()
    {
        $lastQuery = $this->query;
        $this->query = new Query($this->error, $lastQuery->getInitializer());
        $this->query->forceLimit($lastQuery->getLimit());
        $this->query->forceOffset($lastQuery->getOffset());

        if (!is_array($lastQuery->getResultDataType())) {
            $this->query->setResultDataType($lastQuery->getResultDataType());
        }

        return $this;
    }
public function clear ( ) { $ lastQuery = $ this -> query ; $ this -> query = new Query ( $ this -> error , $ lastQuery -> getInitializer ( ) ) ; $ this -> query -> forceLimit ( $ lastQuery -> getLimit ( ) ) ; $ this -> query -> forceOffset ( $ lastQuery -> getOffset ( ) ) ; if ( ! is_array ( $ lastQuery -> getResultDataType ( ) ) ) { $ this -> query -> setResultDataType ( $ lastQuery -> getResultDataType ( ) ) ; } return $ this ; }
Clear and reset persistence query.

@return self
Clear and reset persistence query .