updated deps; switched sitemap lib; ent regen
This commit is contained in:
12
ent/match.go
12
ent/match.go
@@ -207,19 +207,19 @@ func (m *Match) assignValues(columns []string, values []any) error {
|
||||
|
||||
// QueryStats queries the "stats" edge of the Match entity.
|
||||
func (m *Match) QueryStats() *MatchPlayerQuery {
|
||||
return (&MatchClient{config: m.config}).QueryStats(m)
|
||||
return NewMatchClient(m.config).QueryStats(m)
|
||||
}
|
||||
|
||||
// QueryPlayers queries the "players" edge of the Match entity.
|
||||
func (m *Match) QueryPlayers() *PlayerQuery {
|
||||
return (&MatchClient{config: m.config}).QueryPlayers(m)
|
||||
return NewMatchClient(m.config).QueryPlayers(m)
|
||||
}
|
||||
|
||||
// Update returns a builder for updating this Match.
|
||||
// Note that you need to call Match.Unwrap() before calling this method if this Match
|
||||
// was returned from a transaction, and the transaction was committed or rolled back.
|
||||
func (m *Match) Update() *MatchUpdateOne {
|
||||
return (&MatchClient{config: m.config}).UpdateOne(m)
|
||||
return NewMatchClient(m.config).UpdateOne(m)
|
||||
}
|
||||
|
||||
// Unwrap unwraps the Match entity that was returned from a transaction after it was closed,
|
||||
@@ -285,9 +285,3 @@ func (m *Match) String() string {
|
||||
|
||||
// Matches is a parsable slice of Match.
|
||||
type Matches []*Match
|
||||
|
||||
func (m Matches) config(cfg config) {
|
||||
for _i := range m {
|
||||
m[_i].config = cfg
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user