diff --git a/entproto/cmd/protoc-gen-entgrpc/template/method_mutate.tmpl b/entproto/cmd/protoc-gen-entgrpc/template/method_mutate.tmpl index b68f8a86f..d8b18b9e1 100644 --- a/entproto/cmd/protoc-gen-entgrpc/template/method_mutate.tmpl +++ b/entproto/cmd/protoc-gen-entgrpc/template/method_mutate.tmpl @@ -81,7 +81,7 @@ {{- $varName := camel .EntEdge.StructField }} {{- $id := printf "item.Get%s()" .EdgeIDPbStructField }} {{- template "field_to_ent" dict "Field" . "VarName" $varName "Ident" $id }} - m.Add{{ singular .EntEdge.StructField }}IDs({{ $varName }}) + m.Add{{ singular .EntEdge.Name | pascal }}IDs({{ $varName }}) } {{- end }} {{- end }}