protected function performUpdate(array $query) { $result = $this->connection->{$this->collection}->update($this->compileWheres($this), $query, array('multiple' => true)); if (1 == (int) $result['ok']) { return $result['n']; } return 0; }