You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A possible solution is: PyDBantic saves relationship tables with the column name as well. That way instead of a single ClassB_to_ClassA column, we generate ClassB_to_ClassA_b_foreign_key_1, and ClassB_to_ClassA_b_foreign_key_2.
The text was updated successfully, but these errors were encountered:
kestral1
changed the title
multiple instances of the same DataBaseModel
Repeated columns of the same class fails
Dec 12, 2023
What does happen
This returns an error
What should happen
A possible solution is: PyDBantic saves relationship tables with the column name as well. That way instead of a single
ClassB_to_ClassA
column, we generateClassB_to_ClassA_b_foreign_key_1
, andClassB_to_ClassA_b_foreign_key_2
.The text was updated successfully, but these errors were encountered: