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

@@ -141,7 +141,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
}
}