mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: check edge-field on mutation-cleared calls for edges
Fixed #1445
This commit is contained in:
committed by
Ariel Mashraki
parent
106dd53d23
commit
8d7bb7fad6
@@ -192,7 +192,7 @@ func (m *NodeMutation) ClearPrev() {
|
||||
m.clearedprev = true
|
||||
}
|
||||
|
||||
// PrevCleared returns if the "prev" edge to the Node entity was cleared.
|
||||
// PrevCleared reports if the "prev" edge to the Node entity was cleared.
|
||||
func (m *NodeMutation) PrevCleared() bool {
|
||||
return m.clearedprev
|
||||
}
|
||||
@@ -231,7 +231,7 @@ func (m *NodeMutation) ClearNext() {
|
||||
m.clearednext = true
|
||||
}
|
||||
|
||||
// NextCleared returns if the "next" edge to the Node entity was cleared.
|
||||
// NextCleared reports if the "next" edge to the Node entity was cleared.
|
||||
func (m *NodeMutation) NextCleared() bool {
|
||||
return m.clearednext
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user