-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
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
invalid recursive type when using has_many and belongs_to #59
Comments
btw, is there any reason not to use gorm? but i like the way fizz migration works |
@u007 In Go, you can't define structs with circular references. You'll need to use a pointer attribute instead. |
did u mean adding pointer to code.Paper ?
|
Yup, it should work for the Go part. Not sure it's allowed with the Pop side, though. |
I confirm it works with the pointer. |
example:
throwing error compilation
invalid recursive type Paper
i suspect its due to PaperID
The text was updated successfully, but these errors were encountered: