/** * Save this documents with all changes made to it, to the database. * * @return \Clusterpoint\Response\Single */ public function save() { return QueryParser::replace($this->_id, $this, $this->connection); }
/** * Replace document by it's "_id". * * @param string $id * @param mixed $document * @return \Clusterpoint\Response\Single */ public function replace($id, $document = null) { return Parser::replace($id, $document, $this->connection); }