public static updateAll ( array $attributes, array $condition = [], array $options = [] ) : integer | ||
$attributes | array | attribute values (name-value pairs) to be saved into the collection |
$condition | array | description of the objects to update. Please refer to [[Query::where()]] on how to specify this parameter. |
$options | array | list of options in format: optionName => optionValue. |
return | integer | the number of documents updated. |