We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug In all the implementations of the detach method, the related record is always deleted:
orm/src/masoniteorm/relationships/BaseRelationship.py
Lines 185 to 188 in cb92281
orm/src/masoniteorm/relationships/BelongsToMany.py
Lines 540 to 556 in cb92281
To my mind, this is not the expected behavior (am I wrong?), I think the proper one should be to only set the foreign key attribute to NULL.
NULL
Expected behavior When calling detach, the related record should not be deleted.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
In all the implementations of the
detach
method, the related record is always deleted:orm/src/masoniteorm/relationships/BaseRelationship.py
Lines 185 to 188 in cb92281
orm/src/masoniteorm/relationships/BelongsToMany.py
Lines 540 to 556 in cb92281
To my mind, this is not the expected behavior (am I wrong?), I think the proper one should be to only set the foreign key attribute to
NULL
.Expected behavior
When calling
detach
, the related record should not be deleted.The text was updated successfully, but these errors were encountered: