mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +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
@@ -209,7 +209,7 @@ func (m *CardMutation) ClearOwner() {
|
||||
m.clearedowner = true
|
||||
}
|
||||
|
||||
// OwnerCleared returns if the "owner" edge to the User entity was cleared.
|
||||
// OwnerCleared reports if the "owner" edge to the User entity was cleared.
|
||||
func (m *CardMutation) OwnerCleared() bool {
|
||||
return m.clearedowner
|
||||
}
|
||||
@@ -640,7 +640,7 @@ func (m *UserMutation) ClearCard() {
|
||||
m.clearedcard = true
|
||||
}
|
||||
|
||||
// CardCleared returns if the "card" edge to the Card entity was cleared.
|
||||
// CardCleared reports if the "card" edge to the Card entity was cleared.
|
||||
func (m *UserMutation) CardCleared() bool {
|
||||
return m.clearedcard
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user