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

Incorrect relationship syncing in nested CayenneContext's

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0M5
    • 3.0M6
    • Core Library
    • None

    Description

      Parent context does not record the change in to-one relationships synched from a child context. At the same time it incorrectly triggers a chain of events when setting to-many (via ToManyProperty.addTarget(..) / PersistentObjectList.add(..) / CayenneContext.propertyChanged(..)), so it appears as if things are working in a 1..N case (two bugs cancel each other). In the case of 1..1 relationship the problem becomes obvious - no changes are recorded.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment