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

Make Domain Update more convinient #16

Open
confile opened this issue Nov 1, 2015 · 0 comments
Open

Make Domain Update more convinient #16

confile opened this issue Nov 1, 2015 · 0 comments

Comments

@confile
Copy link
Contributor

confile commented Nov 1, 2015

Assume you have a domain class User with a translatable property description.
You update user details like this

def update() {
   User user = User.get(params.id)
   user.properties = params
  user.save() 
}

If params contains a lang flag like lang = en. The description property in UserTranslation should be automatically updated.

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

1 participant