You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am using softDelete and QueryBuilder and i just found out that there is no check for deletedAt column (with @DeleteDateColumn() decorator) to be NULL. so every time you run the query the rows will updated even if they were softDeleted before.
I don't know this is a feature or bug!
my db is mysql.
and my code:
this.dataSource.getRepository(Project).createQueryBuilder("projects").where("projects.id = :id",{id: projectId}).andWhere("projects.deletedAt IS NULL")// i just add this to filter deleted rows.softDelete().execute();
The text was updated successfully, but these errors were encountered:
Hi!
Issue Description
i am using softDelete and QueryBuilder and i just found out that there is no check for
deletedAt
column (with@DeleteDateColumn()
decorator) to be NULL. so every time you run the query the rows will updated even if they were softDeleted before.I don't know this is a feature or bug!
my db is mysql.
and my code:
The text was updated successfully, but these errors were encountered: