Migration from GORM to SQLBoiler - Polymorphism association (OwnerType/OwnerID) #1019
Unanswered
ping-localhost
asked this question in
Q&A
Replies: 1 comment
-
Polymorphic associations are not supported well by sqlboiler. Instead it would rely on multiple nullable foreign keys. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Within GORM it is possible to make polymorphism association for has one and has many. How would one go about migrating to SQLBoiler from such a structure? I tried looking through the documentation, but as of right now I'm not seeing any easy ways.
Example:
Beta Was this translation helpful? Give feedback.
All reactions