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

No view support apparently generated for adding an entity to a 'hasMany' association #19

Open
KymPohl opened this issue Mar 12, 2016 · 0 comments

Comments

@KymPohl
Copy link

KymPohl commented Mar 12, 2016

With a simple Book / Author example it seems that the scaffolded 'create new author' view is not rendering a provision for adding a 'book' (created on the spot, or already existing in the system) to the 'hasMany books' association. I'm using Grails 3.1.2 with scaffolding plugin 3.2.1 . Here is my use case:

// Model
class Book {
String title
}

class Author {
String name
static hasMany = [books: Book]
}

// Controllers
class BookController {
static scaffold = Book
}

class AuthorController {
static scaffold = Author
}

I certainly might be missing something but with such a straightforward example I'm wondering if this might be a bug with either the scaffolding plugin, grails, or the interaction between the two...

@KymPohl KymPohl changed the title Selection list apparently not generated for 'hasMany' association No view support generated for adding 'existing' entity to 'hasMany' association Mar 12, 2016
@KymPohl KymPohl changed the title No view support generated for adding 'existing' entity to 'hasMany' association No view support apparently generated for adding an entity to a 'hasMany' association Mar 12, 2016
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