add('name') ->add('eventName') ->add('entityClass') ; } /** * @param ListMapper $listMapper */ protected function configureListFields(ListMapper $listMapper) { $listMapper ->add('name') ->add('eventName') ->add('entityClass') ->add('actions') ->add('_action', null, array( 'actions' => array( 'show' => array(), 'edit' => array(), 'delete' => array(), ) )) ; } /** * @param FormMapper $formMapper */ protected function configureFormFields(FormMapper $formMapper) { $formMapper ->add('name') ->add('eventName', ChoiceType::class, array( 'choices' => DoctrineEvents::getChoices(), )) ->add('entityClass', ChoiceType::class, array( 'choices' => WorkFlowEntityClasses::getChoices(), )) ->add('actions', null, array( 'multiple' => true, 'expanded' => true, 'by_reference' => false )) ; } /** * @param ShowMapper $showMapper */ protected function configureShowFields(ShowMapper $showMapper) { $showMapper ->add('name') ->add('eventName') ->add('entityClass') ->add('actions') ; } }