em = $em; } public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('message', TextareaType::class, array( 'mapped'=>false )) ->add('send', ButtonType::class, array( 'label' => 'action.send' )) ->add('goto', ButtonType::class, array( 'label' => 'action.goto' )); } public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ 'data_class' => $this->em->getClassMetadata(OrderShopInterface::class)->getName(), 'translation_domain' => 'lcshop' ]); } }