Fix bug where generation could fail
This commit is contained in:
parent
71cda35c50
commit
fbb3872303
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@
|
|||
{{- $table := .Table -}}
|
||||
{{- range .Table.ToManyRelationships -}}
|
||||
{{- if (and .ForeignColumnUnique (not .ToJoinTable)) -}}
|
||||
{{- template "relationship_to_one_setops_test_helper" (textsFromOneToOneRelationship $dot.PkgName $dot.Tables $table .) -}}
|
||||
{{- $txt := (textsFromOneToOneRelationship $dot.PkgName $dot.Tables $table .) -}}
|
||||
{{- template "relationship_to_one_setops_test_helper" (preserveDot $dot $txt) -}}
|
||||
{{- else -}}
|
||||
{{- $varNameSingular := .Table | singular | camelCase -}}
|
||||
{{- $foreignVarNameSingular := .ForeignTable | singular | camelCase -}}
|
||||
|
|
Loading…
Reference in a new issue