setCrudController(PaymentCrudController::class) ->formatValue(fn(?Payment $payment) => ($payment?->getTotal() ?? 0.0) . ' €') ->hideOnIndex() ->hideOnForm(); yield CollectionField::new('tickets') ->allowAdd() ->allowDelete() ->setEntryType(TicketType::class) ->setFormTypeOptions(['by_reference' => false]) ->setTemplatePath('admin/customer_tickets.html.twig') ->hideOnIndex(); } public function configureActions(Actions $actions): Actions { return $actions ->add(Crud::PAGE_INDEX, Action::DETAIL) ->disable(Action::DELETE) ->setPermission(Action::NEW, 'ROLE_SUPER_ADMIN') ->setPermission(Action::EDIT, 'ROLE_SUPER_ADMIN'); } public function configureCrud(Crud $crud): Crud { return $crud ->setPageTitle(Crud::PAGE_INDEX, 'Kunden') ->setPageTitle(Crud::PAGE_DETAIL, 'Kunden') ->showEntityActionsInlined(); } }