Skip to content

Commit

Permalink
Delete::many with TableRef
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Dec 8, 2021
1 parent 871a5e8 commit 1aea3f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{
QueryFilter, QueryTrait,
};
use core::marker::PhantomData;
use sea_query::{DeleteStatement, IntoIden};
use sea_query::DeleteStatement;

/// Defines the structure for a delete operation
#[derive(Clone, Debug)]
Expand Down Expand Up @@ -94,7 +94,7 @@ impl Delete {
{
DeleteMany {
query: DeleteStatement::new()
.from_table(entity.into_iden())
.from_table(entity.table_ref())
.to_owned(),
entity: PhantomData,
}
Expand Down

0 comments on commit 1aea3f6

Please sign in to comment.