mirror of
https://github.com/ent/ent.git
synced 2026-05-28 09:49:08 +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
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user