diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index e92d4ecad..795551b61 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -839,12 +839,12 @@ func updateAttributeViewColRelation(operation *Operation) (err error) { AvID: operation.ID, IsTwoWay: operation.IsTwoWay, } - if operation.IsTwoWay { srcRel.BackKeyID = operation.BackRelationKeyID } else { srcRel.BackKeyID = "" } + keyValues.Key.Relation = srcRel break }