Commit b5ff79f
authored
docs: fix decorator for @AfterRecover() (typeorm#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`1 parent 66acec8 commit b5ff79f
File tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed
0 commit comments