Recursive Belongs-to Model Structure #7084
Unanswered
muellerluke
asked this question in
Q&A
Replies: 0 comments
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.
-
Has anyone been able to achieve a clean, recursive, belongs-to structure? I can't seem to find a solution anywhere.
For some context, I'm using mysql. Here's what I'm working with so far:
But I keep getting the error:
invalid field found for struct x/internal/database/models.UserEntity's field Parent: define a valid foreign key for relations or implement the Valuer/Scanner interface
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions