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

Not working with SoftDeletes #485

Closed
CreativeBulma opened this issue Nov 6, 2019 · 4 comments
Closed

Not working with SoftDeletes #485

CreativeBulma opened this issue Nov 6, 2019 · 4 comments

Comments

@CreativeBulma
Copy link

Hi,

When I use softdelete with my user Model and try to delete a user all assigned roles assigned are completely removed from my DB and I can't have a real soft delete behavior. How can I activate softdelete on role assigned ? So I'll be able to restore my users with their origin roles !

regards,

@CreativeBulma CreativeBulma changed the title SoftDelete not working Not working with SoftDeletes Nov 6, 2019
@emilas44
Copy link

emilas44 commented Nov 7, 2019

This is true....

I have reproduced it like this:

Create a user and assign him a role...
Soft delete the user
Restore the user

And that user will not have that role anymore...
But the role will stay in DB table as a role.... only the row inside 'assigned_roles' is deleted

@hailwood
Copy link
Contributor

hailwood commented Dec 1, 2019

Related #439

@emilas44
Copy link

still waiting for this to be fixed/merged :(

@JosephSilber
Copy link
Owner

The linked issue has been fix. Closing this for now. If it's still an issue, please reopen with more details.

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

4 participants