Skip to content
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

Option to disable updating of nested data? #54

Closed
nailk opened this issue Jan 22, 2014 · 1 comment
Closed

Option to disable updating of nested data? #54

nailk opened this issue Jan 22, 2014 · 1 comment

Comments

@nailk
Copy link

nailk commented Jan 22, 2014

Currently if you insert/update an object with nested data, gorm sends sql update for nested data each time too.
For example, if you have Article with Author, every time you update Article additional sql update for Author will be sent.

Would be nice to have option to disable it.

@jinzhu
Copy link
Member

jinzhu commented Jan 23, 2014

Hi @kernel1

thank you for your report, you are possible to disable it with tag now.

for example:

  type User struct {
    IgnoredEmbedStruct IgnoredEmbedStruct `sql:"-"`
  }

@jinzhu jinzhu closed this as completed Jan 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants