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

detach relations does not work on delete #339

Open
ehsan-soleimanian opened this issue Feb 13, 2024 · 1 comment
Open

detach relations does not work on delete #339

ehsan-soleimanian opened this issue Feb 13, 2024 · 1 comment
Labels

Comments

@ehsan-soleimanian
Copy link

I'm wondering why detaching all realtion should only work on SoftDeletes procedure while it dose make sense when a file deleted then all relations on Mediable table should be removed and detach.
Am I wrong ?
If not I can make pull request to solve this.

@frasmage
Copy link
Collaborator

The mediables pivot table is configured to cascade deletions from the media table at the MySQL level (soft deletes don't actually remove anything, so it requires custom logic). Deleting a media record should automatically sever that link. Are you saying this is not occurring for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants