entc/gen: fix method conflicts in mutation builders (#479)

Fixed #475
This commit is contained in:
Ariel Mashraki
2020-05-08 21:02:21 +03:00
committed by GitHub
parent 9242549f4a
commit 08289b3570
43 changed files with 1025 additions and 310 deletions

View File

@@ -115,7 +115,7 @@ func (m *NodeMutation) AddedValue() (r int, exists bool) {
return *v, true
}
// ResetValue reset all changes of the value field.
// ResetValue reset all changes of the "value" field.
func (m *NodeMutation) ResetValue() {
m.value = nil
m.addvalue = nil
@@ -154,7 +154,7 @@ func (m *NodeMutation) PrevIDs() (ids []int) {
return
}
// ResetPrev reset all changes of the prev edge.
// ResetPrev reset all changes of the "prev" edge.
func (m *NodeMutation) ResetPrev() {
m.prev = nil
m.clearedprev = false
@@ -193,7 +193,7 @@ func (m *NodeMutation) NextIDs() (ids []int) {
return
}
// ResetNext reset all changes of the next edge.
// ResetNext reset all changes of the "next" edge.
func (m *NodeMutation) ResetNext() {
m.next = nil
m.clearednext = false