mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
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:
committed by
Facebook Github Bot
parent
d4efc09f75
commit
eb240579ca
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user