This is subtle. Most likely you have two different instances of your db context, and one of the entities in the relation was retrieved with the first instance of the context, while the other object was retrieved with a different context node.
. , - , . , requrest, . - Windows, db, . .
, . , Session, ID. , ..
, , id . , .
. .