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, E: EntityTrait,
A: ActiveModelTrait<Entity = E>, A: ActiveModelTrait<Entity = E>,
{ {
let mut myself = UpdateOne { UpdateOne {
query: UpdateStatement::new() query: UpdateStatement::new()
.table(A::Entity::default().table_ref()) .table(A::Entity::default().table_ref())
.to_owned(), .to_owned(),
model, model,
}; }
myself = myself.prepare_filters(); .prepare_filters()
myself.prepare_values() .prepare_values()
} }
/// Update many ActiveModel /// Update many ActiveModel