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
@@ -177,7 +177,7 @@ func (m *CityMutation) ClearStreets() {
|
||||
m.clearedstreets = true
|
||||
}
|
||||
|
||||
// StreetsCleared returns if the "streets" edge to the Street entity was cleared.
|
||||
// StreetsCleared reports if the "streets" edge to the Street entity was cleared.
|
||||
func (m *CityMutation) StreetsCleared() bool {
|
||||
return m.clearedstreets
|
||||
}
|
||||
@@ -550,7 +550,7 @@ func (m *StreetMutation) ClearCity() {
|
||||
m.clearedcity = true
|
||||
}
|
||||
|
||||
// CityCleared returns if the "city" edge to the City entity was cleared.
|
||||
// CityCleared reports if the "city" edge to the City entity was cleared.
|
||||
func (m *StreetMutation) CityCleared() bool {
|
||||
return m.clearedcity
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user