-
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
Ability to ignore fields. Gorm ignore support #159
Conversation
dsl/relationalfield.go
Outdated
@@ -112,6 +112,12 @@ func Nullable() { | |||
f.Nullable = true | |||
} | |||
} | |||
// Ignore this field for insert/update |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Thank you! left a comment for a tiny change, will merge once that's done. |
Thank you for making the change, it looks like the build is broken because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me these 9 lines are working good. I use it in several projects.
dsl/relationalfield.go
Outdated
@@ -112,6 +112,12 @@ func Nullable() { | |||
f.Nullable = true | |||
} | |||
} | |||
// Ignore this field for insert/update |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
yes the code works but the file isn't formatted properly which is why the test fails, see https://travis-ci.org/goadesign/gorma/jobs/262609403#L307-L308 |
Closing because no activity. |
GORM supports "-" annotation for fields which might be ignored.
This merge translates this feature for Gorma