update() public method
Creates an UPDATE command. For example, $connection->createCommand()->update('user', ['status' => 1], 'age > 30')->execute();
The method will properly escape the column names and bind the values to be updated. Note that the created command is not executed until execute() is called.
public $this update ( $index, $columns, $condition = '', $params = [], $options = [] )$index string
The index to be updated. $columns array
The column data (name =>