Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
forceDelete on User prevented by Foreign Key Constraints #963
When deleting a user from the admin panel, using the User model
For more insight see comments on #951.
My setups in which I reproduced the error:
This fix worked in my case (all setups above successfully tested) and won't break any custom Sprinkle
And then here is the edited