$user = new User();
$data = [
'name'=>'Lu Bu',
'password'=>'888'
];
//Execute the add operation
$result = $user->save($data);
Field 'id' doesn't have a default value
殘留の回憶2019-06-27 22:22:13
Don’t you have to write a where condition to update the data? It definitely won’t work like this