mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: fix decorator for @AfterRecover() (#9504)
### `@AfterRecover`
You can define a method with any name in the entity and mark it with `@AfterRecover`
and TypeORM will call it after the entity is recovered using repository/manager `recover`.
Example:
```typescript
@Entity()
export class Post {
@AfterRecover()
updateStatus() {
this.status = "recovered"
}
}
```
`@AfterSoftRemove()` should be `@AfterRecover`
This commit is contained in:
parent
66acec8c0c
commit
b5ff79fc3f