Issue Bug Resolved

#110469f:render.text() throws exception using backed enum for type field

Chris Müller 08/13/26, 06:35 updated 10/19/26, 08:20

Description

Having an enum for the type field:

enum Type: int
{
    case VariantA = 0;
    case VariantB = 1;
}

and using that enum in an Extbase model:

final class MyEntity extends AbstractEntity
{
    public Type $type = Type::VariantA;
    // ...
}

The field is configured as type in TCA’s ctrl section.

When now using <f:render record="{myEntity} field="> the following exception is thrown:</f:render>

Object of class MyVendor\MyExtension\Type could not be converted to string

Reviews 3

History 311

  1. Chris Müller commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-19T08:20:25+00:00" > 10/19/26, 08:20 </span>

    Applied in changeset commit:abc429de96f96bbba92524948723965f7743ed09.