Refactor
This commit is contained in:
parent
19ec35f1b5
commit
c4cdfa1add
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user