Skip to content

GPMONGODB-39: Scaffolding incorrectly shows JSON of 1:1 association for a hasMany association of the same type #483

@graemerocher

Description

@graemerocher

Original Reporter: wangjammer5
Environment: Not Specified
Version: 1.0.0-M5
Migrated From: http://jira.grails.org/browse/GPMONGODB-39

I have a domain class like this:

{code}
class Book {
Author primaryAuthor

static hasMany = [authors:Author]
}
{code}

When a Book has a primaryAuthor set but no elements in authors, and you view this book in scaffolding, it shows "authors" as having 1 element, and renders the JSON of the primaryAuthor.

Very strange...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions