Deleting a model that doesn't keep back references to its relationships -- with PR #611
Unanswered
thedamnedrhino
asked this question in
Questions
Replies: 1 comment
-
This is the sqlalchemy version of this question: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
The above code would raise the error:
One workaround would be to add the back reference from
Repository
toUser
. In this case it makes sense, although for my use case it would clutter my models and make them less semantically coherent.Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.10.0
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions