[JIRA] Commented: (CAY-697) Deleting objects in ROP does not seem to delete the object in context linked arrays

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Wed Jan 02 2008 - 03:46:33 EST

  • Next message: Steve Troudart: "Complex SELECT request error"

        [ https://issues.apache.org/cayenne/browse/CAY-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670#action_12670 ]

    Andrus Adamchik commented on CAY-697:
    -------------------------------------

    This is likely not a bug, but a question of setting the delete rules (which are "no action" by default)

    > Deleting objects in ROP does not seem to delete the object in context linked arrays
    > -----------------------------------------------------------------------------------
    >
    > Key: CAY-697
    > URL: https://issues.apache.org/cayenne/browse/CAY-697
    > Project: Cayenne
    > Issue Type: Bug
    > Components: Cayenne Core Library
    > Affects Versions: 2.0 [STABLE]
    > Environment: Tested on Windows XP client with 2003 Server
    > Reporter: Lindsay Steele
    > Assignee: Kevin Menard
    >
    > When an object is deleted in a context on an ROP client and the context is committed, the object is deleted in the database but still seems to be in the context.
    > An example is having object A with a To array of B Objects.
    > One of the B objects is deleted. The context is then committed. The object is removed from the database.
    > Then, when looking at the size of the ObjectA.toBArray the size is still the same and object is still there.
    > My work around has been;
    > context.deleteObject(B) ;
    > ObjectA.getToBArray.remove(B);

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Wed Jan 02 2008 - 03:47:05 EST