Guest User

Untitled

a guest
Apr 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Tennisconnect\DashboardBundle\Form\Type;
  4.  
  5. use Symfony\Component\Form\AbstractType;
  6. use Symfony\Component\Form\FormBuilder;
  7.  
  8. class ChallengeType extends AbstractType
  9. {
  10. public function buildForm(FormBuilder $builder, array $options)
  11. {
  12. $builder->add('teams', 'collection', array('type' => new TeamType()));
  13. }
  14.  
  15. public function getName()
  16. {
  17. return 'challenge';
  18. }
  19. }
Add Comment
Please, Sign In to add comment