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

Andrey Razumovsky commented on CAY-1194:
----------------------------------------

Marcin,

Thanks for junit test. 
This is a harsh issue. I can confirm it can also be reproduced on normal nested 
DataContexts.
The root of the problem is that when child's to-many property is being 
resolved, it sends query to parent context - It is intercepted there, because 
parent object's to-many list is already resolved. So "objectList" in child's 
PersistentObjectList is parent's PersistentObjectList. That's why all changes 
are applied without commit. We'll likely need to duplicate the list.. Will need 
some more time to find a proper fix..

> problems with relationships when using nested contexts and ROP
> --------------------------------------------------------------
>
>                 Key: CAY-1194
>                 URL: https://issues.apache.org/cayenne/browse/CAY-1194
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0M6
>         Environment: ROP
>            Reporter: Marcin Skladaniec
>            Assignee: Andrey Razumovsky
>             Fix For: 3.0M6
>
>
> The problem reveals itself in several ways. I'll attach a junit case to show 
> one of the problems. 

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