updated deps; switched sitemap lib; ent regen

This commit is contained in:
2023-03-03 20:10:31 +01:00
parent e9a5daa9e3
commit 727d530378
52 changed files with 2626 additions and 5665 deletions

View File

@@ -120,14 +120,14 @@ func (w *Weapon) assignValues(columns []string, values []any) error {
// QueryStat queries the "stat" edge of the Weapon entity.
func (w *Weapon) QueryStat() *MatchPlayerQuery {
return (&WeaponClient{config: w.config}).QueryStat(w)
return NewWeaponClient(w.config).QueryStat(w)
}
// Update returns a builder for updating this Weapon.
// Note that you need to call Weapon.Unwrap() before calling this method if this Weapon
// was returned from a transaction, and the transaction was committed or rolled back.
func (w *Weapon) Update() *WeaponUpdateOne {
return (&WeaponClient{config: w.config}).UpdateOne(w)
return NewWeaponClient(w.config).UpdateOne(w)
}
// Unwrap unwraps the Weapon entity that was returned from a transaction after it was closed,
@@ -163,9 +163,3 @@ func (w *Weapon) String() string {
// Weapons is a parsable slice of Weapon.
type Weapons []*Weapon
func (w Weapons) config(cfg config) {
for _i := range w {
w[_i].config = cfg
}
}