You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deleting a user from the admin panel, using the User model forceDelete option ($user->delete(true)), in the confirmation modal shows up an alert about a generic php error.
Seems like the foreign key constraints prevent the deletion of any activity related to the user.
This fix worked in my case (all setups above successfully tested) and won't break any custom Sprinkle
First I defined the classMapping of the Persistence model inside ServicesProvider.php
When deleting a user from the admin panel, using the User model
forceDelete
option($user->delete(true))
, in the confirmation modal shows up an alert about a generic php error.Seems like the foreign key constraints prevent the deletion of any activity related to the user.
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
First I defined the classMapping of the
Persistence
model insideServicesProvider.php
And then here is the edited
delete
method of theUser
modelThe text was updated successfully, but these errors were encountered: