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:
@@ -602,6 +602,7 @@ func (m *UserMutation) RemovePetIDs(ids ...int) {
|
||||
m.removedpets = make(map[int]struct{})
|
||||
}
|
||||
for i := range ids {
|
||||
delete(m.pets, ids[i])
|
||||
m.removedpets[ids[i]] = struct{}{}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user