Model Database Integrity Constraint prevents Model deletion but not its media #2661
Unanswered
asolopovas
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Please submit a test for this for us to fix. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Are you using transactions? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a
Product
model which has media attached to it which also has the database constraint that prevents its deletion if this product is used in the order. If I try to remove the product that is used in the order it throws an exception and remains intact but the media gets deleted anyway for some reason.laravel-medialibrary version: 9.8.3
Beta Was this translation helpful? Give feedback.
All reactions