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) ParentIDs() (ids []int) {
return
}
// ResetParent reset all changes of the parent edge.
// ResetParent reset all changes of the "parent" edge.
func (m *NodeMutation) ResetParent() {
m.parent = nil
m.clearedparent = false
@@ -196,7 +196,7 @@ func (m *NodeMutation) ChildrenIDs() (ids []int) {
return
}
// ResetChildren reset all changes of the children edge.
// ResetChildren reset all changes of the "children" edge.
func (m *NodeMutation) ResetChildren() {
m.children = nil
m.removedchildren = nil