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

Kevin Menard commented on CAY-697:
----------------------------------

I was running into issues myself when deleting an item from a ToManyList.  So, 
I'm looking to see if they're related.

Lindsay seems to have a pretty firm grasp of Cayenne basics, too, so I'm giving 
'em the benefit of the doubt.

Ideally, there is no issue though.

> 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.

Reply via email to