Delete on cascade #354
Answered
by
vmihailenco
Hatsumi-FR
asked this question in
Q&A
-
Hey ! How to set delete on cascade in a model with a many to many relation ? |
Beta Was this translation helpful? Give feedback.
Answered by
vmihailenco
Dec 10, 2021
Replies: 1 comment
-
You can use hooks to define a foreign key and specify ON DELETE clause - https://bun.uptrace.dev/guide/query-create-table.html#hooks |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Hatsumi-FR
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use hooks to define a foreign key and specify ON DELETE clause - https://bun.uptrace.dev/guide/query-create-table.html#hooks