/** * 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; }
public function updateLabels($labels, $operation = 'add') { $cypher = $this->grammar->compileUpdateLabels($this, $labels, $operation); $updated = $this->connection->update($cypher, $this->getBindings()); return isset($updated[0]) && isset($updated[0][0]) ? $updated[0][0] : 0; }
/** * Run an update statement against the database. * * @param string $query * @param array $bindings * @return int * @static */ public static function update($query, $bindings = array()) { //Method inherited from \Illuminate\Database\Connection return \Vinelab\NeoEloquent\Connection::update($query, $bindings); }
/** * Update a record in the database. * * @param array $values * @return int */ public function update(array $values) { $bindings = array_merge($values, $this->getBindings()); $cypher = $this->grammar->compileUpdate($this, $values); return $this->connection->update($cypher, $bindings); }