hideOnForm(), DateField::new('createdAt')->setFormat('short')->hideOnForm(), TextField::new('visitorFirstName')->hideOnForm(), TextField::new('visitorLastName')->hideOnForm(), TextField::new('visitorEmail')->hideOnForm(), AssociationField::new('user') ->hideOnIndex(), TextField::new('subject'), ChoiceField::new('type') ->autocomplete() ->setChoices( [ 'entity.Ticket.fields.typeOptions.' . Ticket::TYPE_GENERAL_QUESTION => Ticket::TYPE_GENERAL_QUESTION, 'entity.Ticket.fields.typeOptions.' . Ticket::TYPE_TECHNICAL_PROBLEM => Ticket::TYPE_TECHNICAL_PROBLEM, ] ), StatusField::new('status')->setRequired(false)->hideOnForm(), ]; } }