Skip to content

Commit d5111a9

Browse files
committed
Merge branch '6.0'
2 parents 727e697 + 81333f5 commit d5111a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm/Orm/Persistent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ protected internal void SetReferenceKey(FieldInfo field, Key value)
307307
throw new InvalidOperationException(string.Format("Key of {0} type is not assignable to field of {1} type", value.TypeInfo.Name, field.ValueType.Name));
308308
}
309309

310-
if (value == oldValue) {
310+
if (value == oldValue && !isPersisting) {
311311
return;
312312
}
313313

0 commit comments

Comments
 (0)