Grails
  1. Grails
  2. GRAILS-8505

Saving with flush : true fails in case of one-to-one relationships

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0 final
    • Fix Version/s: None
    • Component/s: Persistence
    • Labels:

      Description

      class Face

      { static hasOne = [nose: Nose] }

      class Nose

      { Face face }

      Will fail:
      ==========
      def face = new Face()
      face.save()
      face.nose = new Nose()
      face.save(flush: true)

      ==> This however worked on Grails 1.3.7

        Activity

        Hide
        Graeme Rocher added a comment -

        Duplicates GRAILS-8451

        Show
        Graeme Rocher added a comment - Duplicates GRAILS-8451

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Markus Menner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development