Grails
  1. Grails
  2. GRAILS-9895 Improve Data Binding
  3. GRAILS-8640

Support automatic data binding for polymorphic associations

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0 final
    • Fix Version/s: 2.3-M1
    • Component/s: Persistence
    • Labels:
      None

      Description

      In a controller "new Book(params)" automatically creates an associated Author if the "author.name" param is set but what if the author association is polymorphic?

      There is no way to tell Grails what subclass of Author you want associated with your book.

        Activity

        Show
        Jeff Scott Brown added a comment - An example: https://github.com/grails/grails-core/commit/fed4240921a7bcac7ec06b98c582aaebff0093a1

          People

          • Assignee:
            Jeff Scott Brown
            Reporter:
            David Donn
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Last Reviewed:

              Development