Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }