-
Notifications
You must be signed in to change notification settings - Fork 35
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
BelongsTo relationship generates wrong xID type when using UUID #115
Comments
aslakknutsen
added a commit
to aslakknutsen/gorma
that referenced
this issue
Jul 11, 2016
Instead of hard-coding the Type of a BelongsTo|HasManyKey|HasOneKey relationship to be in, resolve the target model in the relationship and use its PrimaryKey as xID type in source struct. Note: Currently this will panic if multiple PrimaryKeys are defined. fixes goadesign#115
aslakknutsen
added a commit
to aslakknutsen/gorma
that referenced
this issue
Jul 11, 2016
aslakknutsen
added a commit
to aslakknutsen/gorma
that referenced
this issue
Jul 12, 2016
aslakknutsen
added a commit
to aslakknutsen/gorma
that referenced
this issue
Jul 12, 2016
BelongsTo(parent, tags ...string) used as SQLTags on generated BelongsToID field. Used to e.g. override gorm to generate native pg uuid type in target table. fixes goadesign#115
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given:
Expected:
But got:
The text was updated successfully, but these errors were encountered: