Recursive save...

Posts   
 
    
ivanc
User
Posts: 36
Joined: 29-Apr-2004
# Posted on: 18-Apr-2005 10:52:14   

Is there a way to see what will be saved in the entity recursive save? Through which relation(s) (collection)? Just for debugging purposes.

Reason: If a transaction fails I clear an entity collection of related entities, but somehow it gets saved anyway. I guess thats because somewhere, somehow, sometime a related entity gets its related entites asigned.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 18-Apr-2005 11:40:32   

all dirty entities in a graph will be saved, so if an entity E1 is reachable from another entity E2, no matter which path it has to follow, it will be saved as well.

If a transaction fails, the saves will be undone, so there aren't any side effects (fields objects included).

In 1.0.2004.2, a tracing feature has been added which shows you the entities which are saved in a save action in the tracing output. In 1.0.2004.1, this isn't possible.

Frans Bouma | Lead developer LLBLGen Pro