Hi,
My add-on defines an entity
The entity works fine, but I've noticed that I cannot use the specified
The function
My add-on defines an entity
MyEntity
with a field some_field
:
Code:
$structure->columns = [
'some_field' => ['type' => self::STR, 'maxLength' => 250, 'required' => true]
];
maxLength
in templates:
Code:
<xf:textboxrow name="allowed_value"
label="{{phrase('some_value')}}"
textbox-class="input--title"
autofocus="autofocus"
maxlength="{{max_length('My\AddOn:MyEntity', 'some_field')}}" />
max_length
does not return anything. I've checked the entity's namespace a couple of times already, but don't see anything wrong. Am I using max_length
wrong?