protected performUpdate ( array $query ) : integer | ||
$query | array | |
리턴 | integer |
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;
}