Guest User

Untitled

a guest
Oct 24th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppBundle\Form;
  4.  
  5. use Doctrine\Common\Collections\Collection;
  6. use Symfony\Bridge\Doctrine\Form\Type\EntityType;
  7. use Symfony\Component\Form\AbstractType;
  8. use Symfony\Component\Form\Extension\Core\Type\CollectionType;
  9. use Symfony\Component\Form\Extension\Core\Type\SubmitType;
  10. use Symfony\Component\Form\FormBuilderInterface;
  11. use Symfony\Component\OptionsResolver\OptionsResolver;
  12.  
  13. class TaskType extends AbstractType
  14. {
  15. public function buildForm(FormBuilderInterface $builder, array $options)
  16. {
  17. $builder->add('description')->add('tags')
  18.  
  19. // add('tags', CollectionType::class,
  20. // [
  21. // 'entry_type' => TagType::class,
  22. // 'allow_add' => true,
  23. // 'allow_delete' => true,
  24. // ])
  25. ->add('zapisz', SubmitType::class);
  26. }
  27.  
  28. public function configureOptions(OptionsResolver $resolver)
  29. {
  30.  
  31. }
  32.  
  33. public function getName()
  34. {
  35. return 'app_bundle_task_type';
  36. }
  37. }
Add Comment
Please, Sign In to add comment