diff --git a/templates/04_relationship_to_one.tpl b/templates/04_relationship_to_one.tpl index daa4678..d4add6b 100644 --- a/templates/04_relationship_to_one.tpl +++ b/templates/04_relationship_to_one.tpl @@ -3,7 +3,7 @@ {{- $dot := . -}} {{- range .Table.FKeys -}} {{- $txt := txtsFromFKey $dot.Tables $dot.Table . -}} - {{- $varNameSingular := .ForeignTable | singular | camelCase -}} + {{- $varNameSingular := .ForeignTable | singular | camelCase}} // {{$txt.Function.Name}}G pointed to by the foreign key. func (o *{{$txt.LocalTable.NameGo}}) {{$txt.Function.Name}}G(mods ...qm.QueryMod) {{$varNameSingular}}Query { return o.{{$txt.Function.Name}}(boil.GetDB(), mods...) diff --git a/templates/05_relationship_one_to_one.tpl b/templates/05_relationship_one_to_one.tpl index ec3f29b..1ea002e 100644 --- a/templates/05_relationship_one_to_one.tpl +++ b/templates/05_relationship_one_to_one.tpl @@ -3,7 +3,7 @@ {{- $dot := . -}} {{- range .Table.ToOneRelationships -}} {{- $txt := txtsFromOneToOne $dot.Tables $dot.Table . -}} - {{- $varNameSingular := .ForeignTable | singular | camelCase -}} + {{- $varNameSingular := .ForeignTable | singular | camelCase}} // {{$txt.Function.Name}}G pointed to by the foreign key. func (o *{{$txt.LocalTable.NameGo}}) {{$txt.Function.Name}}G(mods ...qm.QueryMod) {{$varNameSingular}}Query { return o.{{$txt.Function.Name}}(boil.GetDB(), mods...)