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
The recent change that closed this issue #760 applied the change in behaviour to BelongsToMany as well, but this is not correct. A pivot record with one of the foreign keys nulled out is completely useless and can never be recovered.
For BelongsToMany specifically, the detach behaviour should be deleting the pivot record.
The text was updated successfully, but these errors were encountered:
os-nikita
changed the title
detach method should delete pivot record from intermediate table
detach method should delete pivot record from intermediate table for BelongsToMany
Jul 28, 2022
Describe the bug
The recent change that closed this issue #760 applied the change in behaviour to BelongsToMany as well, but this is not correct. A pivot record with one of the foreign keys nulled out is completely useless and can never be recovered.
For BelongsToMany specifically, the detach behaviour should be deleting the pivot record.
The text was updated successfully, but these errors were encountered: