Skip to content

GPMONGODB-75: Can't save Association out of controller #474

@graemerocher

Description

@graemerocher

Original Reporter: simonrleung
Environment: Grails 1.3.7
Version: 1.0.0.M6
Migrated From: http://jira.grails.org/browse/GPMONGODB-75

{code}
class Setting {
String id
String something
User user
}
{code}

code like:
{code}
def setting = new Setting(user: currentUser)
setting.save(flush: true)
{code}

in controller the the code work fine.
{code}
db.setting.find() : {"_id": "id_here", "something": "ok", "user": "user_id_here"}
{code}

by in a quartz job. it also can save(), but the user field can't be persisted to mongodb
{code}
db.setting.find() : {"_id": "id_here", "something": "ok"}
{code}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions