Skip to content
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

Support soft delete when join. #139

Open
c20020207 opened this issue Sep 29, 2021 · 0 comments
Open

Support soft delete when join. #139

c20020207 opened this issue Sep 29, 2021 · 0 comments

Comments

@c20020207
Copy link

c20020207 commented Sep 29, 2021

When you join right now, you still need to add not is_nil(deleted_at) during join. It is really easy to forget to add as normally you don't need to think about it as it is automatically handled by the library.
Tried to modify the Repo, but not sure if there is any way to do the dynamic binding in the query. (as you can use query.joins to figure out how many join it is, theoretically if there is any way to loop build the query, it might work(
Happy to discuss or implement if anyone have any ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant