Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2848

Vertical Inheritance: Updating one-to-many with inverse nullifies other columns.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2
    • 4.2.1, 5.0-M1
    • None
    • None

    Description

      When there is a one-to-many relationship on the child DbEntity of a vertical inheritance scenario, giving it an inverse fails when the relationship is updated to anything non-null.

      An update query is issued that contains the PK of the child row and the new ID for the relationship, but sets every other column to null. I've included a breaking test as a patch in 4.2-STABLE.

      Attachments

        Activity

          People

            ntimofeev Nikita Timofeev
            jhansell Jadon Hansell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m