generated from Char2sGu/typescript-package-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
I have a Foo entity with a OneToOne relation to a Bar entity.
When hard-deleting Foo, Bar is deleted due to having deleteRule: 'cascade'.
When soft-deleting Foo, Bar is not deleted and it's deletedAt
property is not updated, only Foo's deletedAt
.
HOWEVER: If I attempt to fetch Bar, the orm doesn't find it, even when its deletedAt
property is still undefined. If I disable filters, it's fetched correctly.
So it seems it's working half way. Am I missing something? Is there a standardized way I should be cascading soft deletions? I'm only using deleteRule: 'cascade'. No orphan removal.
Metadata
Metadata
Assignees
Labels
No labels