Fix naming bug

This commit is contained in:
Aaron L 2016-07-12 21:34:59 -07:00
parent 272660ca75
commit b15889591e

View file

@ -53,7 +53,7 @@ func createTextsFromRelationship(tables []bdb.Table, table bdb.Table, rel bdb.To
if colName := strings.TrimSuffix(rel.ForeignColumn, "_id"); r.LocalTable.NameSingular == colName {
r.Function.Name = r.ForeignTable.NamePluralGo
} else {
r.Function.Name = r.ForeignTable.NamePluralGo + strmangle.TitleCase(colName)
r.Function.Name = strmangle.TitleCase(colName) + r.ForeignTable.NamePluralGo
}
if rel.Nullable {