Hi.
we have a following Situation:
pseudo code:
class A
{
EntityCollection<B> BCollection{get;set;}
}
class B
{
A Parent {get; set;}
}
One of developers made a following assigment:
A a = new A();
B b = new B();
b.Parent = a;
a.BCollection.Add(b);
adapter.save(a);
The effect was one entity in A object and two entities of B object in the DB. We've fix this behaviour by removing extra assigment, but does a mentioned behavior is correct? I Know that we have a two references in the collection but they reference the same object.
Regards,
MiloszeS
PS. Hope that I've clearly describe a problem.