Skip to content

Commit 5003aaa

Browse files
authored
docs: use correct SQL statements in softDelete/restore comments (#11489)
1 parent 12a71e4 commit 5003aaa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/entity-manager/EntityManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ export class EntityManager {
927927
/**
928928
* Restores entities by a given condition(s).
929929
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
930-
* Executes fast and efficient DELETE query.
930+
* Executes fast and efficient UPDATE query.
931931
* Does not check if entity exist in the database.
932932
* Condition(s) cannot be empty.
933933
*/

src/repository/Repository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ export class Repository<Entity extends ObjectLiteral> {
434434
/**
435435
* Records the delete date of entities by a given criteria.
436436
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
437-
* Executes fast and efficient SOFT-DELETE query.
437+
* Executes fast and efficient UPDATE query.
438438
* Does not check if entity exist in the database.
439439
*/
440440
softDelete(
@@ -459,7 +459,7 @@ export class Repository<Entity extends ObjectLiteral> {
459459
/**
460460
* Restores entities by a given criteria.
461461
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
462-
* Executes fast and efficient SOFT-DELETE query.
462+
* Executes fast and efficient UPDATE query.
463463
* Does not check if entity exist in the database.
464464
*/
465465
restore(

0 commit comments

Comments
 (0)