This commit is contained in:
Billy Chan 2021-09-10 13:15:45 +08:00
parent 19ec35f1b5
commit c4cdfa1add
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -47,14 +47,14 @@ impl Update {
E: EntityTrait,
A: ActiveModelTrait<Entity = E>,
{
let mut myself = UpdateOne {
UpdateOne {
query: UpdateStatement::new()
.table(A::Entity::default().table_ref())
.to_owned(),
model,
};
myself = myself.prepare_filters();
myself.prepare_values()
}
.prepare_filters()
.prepare_values()
}
/// Update many ActiveModel