TP5.1 failed to update data

none of these three methods will work. Why? I follow the development manual

.
Db::name("user")->where("email",$email)
->setField(["password"=>$pw,"time"=>time()]);
Db::name("user")->where("email",$email)
->update(["password"=>$pw,"time"=>time()]);
$data=["email"=>$email,"password"=>$pw,"time"=>time()];
$res=$user->isUpdate(true)->save($data);

there are no specific errors reported

Mar.16,2021

1. The reason for the first misspelling is that setField () can only update one field, but you give two fields.
2. The second way of writing is correct
3.save is that the first is the updated data with two parameters, and the second is the updated condition

.
Menu