mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: delete removal edges from mutation (#1654)
* Remove Edge IDs from internal Mutation state * Update template gen * Update integration tests * Update examples
This commit is contained in:
@@ -244,6 +244,7 @@ func (m *UserMutation) RemoveFriendIDs(ids ...int) {
|
||||
m.removedfriends = make(map[int]struct{})
|
||||
}
|
||||
for i := range ids {
|
||||
delete(m.friends, ids[i])
|
||||
m.removedfriends[ids[i]] = struct{}{}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user