Ejemplo n.º 1
0
 /**
  * Update a record in the database.  
  *
  * @param  array  $values
  * @return int
  */
 public function update(array $values)
 {
     $cypher = $this->grammar->compileUpdate($this, $values);
     $bindings = $this->getBindingsMergedWithValues($values);
     $updated = $this->connection->update($cypher, $bindings);
     return isset($updated[0]) && isset($updated[0][0]) ? $updated[0][0] : 0;
 }