I have the following routeEnhancers definition:
routes:
- routePath: '/orga/{name_lineage}'
_controller: 'EtbSysCategory::list'
_arguments:
name_lineage: etbSysCategory
aspects:
name_lineage:
type: PersistedAliasMapper
tableName: tx_etb1_domain_model_etbsyscategory
routeFieldName: name_lineage
which does work as expected. but the values in the field have a not so nice formatting:
LONGPREFIX###v1
LONGPREFIX###v1###v2
LONGPREFIX###v1###v2###v3
LONGPREFIX###v4
LONGPREFIX###v4###v5
I would prefer to have:
v1
v1.v2
v1.v2.v3
v4
v4.v5
is there an easy way to transform the aspect/field values?
I can’t find a documentation how to modify the result with a small modify-function
my try:
I copied the PersistedAliasMapper to MySpecialMapper and modified only the generate() and resolve() functions. The generate() works and the URI looks as expected, but the resolve() on this URI doesn’t work and results only in 404.