diff --git a/templates/bake/Template/view.twig b/templates/bake/Template/view.twig index ae63d0e2..76192e48 100644 --- a/templates/bake/Template/view.twig +++ b/templates/bake/Template/view.twig @@ -118,7 +118,7 @@ {% endif %} {% set relations = associations.BelongsToMany|merge(associations.HasMany) %} {% for alias, details in relations %} -{% set otherSingularVar = alias|variable %} +{% set otherSingularVar = alias|singularize|variable %} {% set otherPluralHumanName = details.controller|underscore|humanize %}