-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Get Reacterable for soft deleted (trashed) users #238
Labels
Comments
schwemmer
changed the title
Get Reacterable for soft deleted users
Get Reacterable for soft deleted (trashed) users
Mar 30, 2023
Can you call $item->getReacter()->reacterable()->withTrashed()->first() |
@schwemmer another one way to do this:
|
Thanks a lot @antonkomarev, the first way you mentioned above actually works great! |
Can we close an issue? |
Yes, thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have a bunch of soft deleted users and would like to still count their reactions (shown as "Deleted User"). The easiest way to do this is to change the relationship in the Reacter Model from this:
to this:
However, the class is final and can not be extended. It would be great if we could somehow pass a parameter to also get reactions from soft deleted users in a future release.
See also #189
The text was updated successfully, but these errors were encountered: