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. |
리턴 | integer | the number of documents updated. |
public static function updateAll($attributes, $condition = [], $options = [])
{
return static::getCollection()->update($condition, $attributes, $options);
}