Skip to content

GPMONGODB-8: beforeInsert() method duplicates '_id' property with a new 'id' property #251

@graemerocher

Description

@graemerocher

Original Reporter: oct
Environment: Fedora 14, mongodb 1.6.4, grails-mongodb M4
Version: Not Specified
Migrated From: http://jira.grails.org/browse/GPMONGODB-8

If a domain contains def beforeInsert(){}, once it's saved there is a new property 'id' which is equal with '_id' property. Both are of ObjectId type.

I'm trying to use def beforInsert() method, since def beforeInsert closure doesn't work, but that's different issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions