ent/gen: fix identifiers conflict in ent.tmpl

Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/58

Reviewed By: alexsn

Differential Revision: D17759261

fbshipit-source-id: df7f5344b43157a483662d9ee5cf8441943b637a
This commit is contained in:
Ariel Mashraki
2019-10-03 23:52:48 -07:00
committed by Facebook Github Bot
parent d4efc09f75
commit eb240579ca
36 changed files with 1764 additions and 44 deletions

View File

@@ -115,7 +115,7 @@ func (u *Users) FromRows(rows *sql.Rows) error {
}
func (u Users) config(cfg config) {
for i := range u {
u[i].config = cfg
for _i := range u {
u[_i].config = cfg
}
}

View File

@@ -78,7 +78,7 @@ func (gr *Groups) FromRows(rows *sql.Rows) error {
}
func (gr Groups) config(cfg config) {
for i := range gr {
gr[i].config = cfg
for _i := range gr {
gr[_i].config = cfg
}
}

View File

@@ -78,7 +78,7 @@ func (pe *Pets) FromRows(rows *sql.Rows) error {
}
func (pe Pets) config(cfg config) {
for i := range pe {
pe[i].config = cfg
for _i := range pe {
pe[_i].config = cfg
}
}

View File

@@ -127,7 +127,7 @@ func (u *Users) FromRows(rows *sql.Rows) error {
}
func (u Users) config(cfg config) {
for i := range u {
u[i].config = cfg
for _i := range u {
u[_i].config = cfg
}
}