Cloning causes dirtycontents on entity collections!!

Posts   
 
    
Harry
User
Posts: 73
Joined: 26-Jun-2007
# Posted on: 31-Jan-2008 18:24:45   

Please help.

I am using the clone method code posted in the forum for creating a copy of an entity. What I am finding is that when the clone comes back some of the collections in the entity have their ContainsDirtyContents property reflecting true.

The collections that this is happening to have no changes made prior to the clone. I have been debugging for hours and cannot track down the point where this is happening.

Can someone please point me in the right direction of where to look?

Thanks!!!

Harry
User
Posts: 73
Joined: 26-Jun-2007
# Posted on: 31-Jan-2008 18:46:11   

Ignore this one. The issue was in our commonentitybase class. A field was being set as a default using setnewfieldvalue.