IntegerField::new('id')->onlyOnIndex()->setSortable(true), 'lastname'=> TextField::new('user.lastname')->setSortable(true) ->setCustomOption('filter_fqcn', UserMerchantLastnameFilter::class), 'firstname'=> TextField::new('user.firstname')->setSortable(true) ->setCustomOption('filter_fqcn', UserMerchantFirstnameFilter::class), 'email'=> TextField::new('user.email')->setSortable(true) ->setCustomOption('filter_fqcn', UserMerchantEmailFilter::class), 'credit'=> NumberField::new('credit')->setSortable(true) ->setTemplatePath('@LcSov/adminlte/crud/field/amount.html.twig') ->setCustomOption('appendHtml', '€'), 'user'=> AssociationField::new('user'), ]; } }