We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 73f2bf0 + edf678b commit 1ed4b2bCopy full SHA for 1ed4b2b
templates/main/15_insert.go.tpl
@@ -152,8 +152,7 @@ func (o *{{$alias.UpSingular}}) Insert({{if .NoContext}}exec boil.Executor{{else
152
153
{{$colName := index .Table.PKey.Columns 0 -}}
154
{{- $col := .Table.GetColumn $colName -}}
155
- {{- $colTitled := $colName | titleCase}}
156
- o.{{$colTitled}} = {{$col.Type}}(lastID)
+ o.{{$alias.Column $colName}} = {{$col.Type}}(lastID)
157
if lastID != 0 && len(cache.retMapping) == 1 && cache.retMapping[0] == {{$alias.DownSingular}}Mapping["{{$colName}}"] {
158
goto CacheNoHooks
159
}
0 commit comments