-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "recover" option to support recovery after soft deletion #11
Comments
@Char2sGu Okay. So below code is working to recover it, but still not sure how to recover deleted relationships.
|
Hey @rahul-rocket sorry for the delay. I am a little busy at the moment, but this has been added to my todo. Will look into it in a few days |
On second thought, I should stop piling up my to-do list 😝 Currently, when an entity is soft-deleted, only this specific entity's I'm not pretty sure if this should be added as a new method since this process seems pretty straightforward. Do you have some suggestions on the API you expect to see? @rahul-rocket |
@Char2sGu We are building amazing platform where we used 2 ORMs (TypeORM & MikroORM) together. So TypeORM provide additional method to recover it. i.e. So TypeORM can also soft deleted relations too if we passed them with Entity. But not sure how Mikro ORM (this package) doing it. Note: Anyway i have fixed this issue by some other hacked. But check below link and let me know if you have any suggestion for me. https://github.com/ever-co/ever-gauzy/blob/develop/packages/core/src/core/crud/crud.service.ts#L684 |
My suggestion is that we should add some additional method |
this is not true to be honest. at least for me it deletes the loaded @onetomany relationships for example. is this expected? |
This is not expected. MikroORM might have changed its internal strategies. |
Description:
It would be helpful to have an option to recover entities that have been soft-deleted. This feature would enable users to restore entities to their original state, rather than permanently losing them due to soft deletion.
Feature Request:
Benefits:
The text was updated successfully, but these errors were encountered: