Deleting an lazy loaded relationship does not remove the foreign key from model #1968
Unanswered
ApetersDev
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I tried to open your sandbox example, but it doesn't work. It seem not to be public. |
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
-
Is it expected that the foreign key is not removed from model after destroying the lazy loaded related object? The relation is null but the foreignkey is only removed in store. Everything works fine, if the relation is loaded directly.
Example with a relation between alliance and player:
Sandbox: https://codesandbox.io/p/sandbox/dv56qn
Beta Was this translation helpful? Give feedback.
All reactions