Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Tennisconnect\DashboardBundle\Form\Type;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\FormBuilder;
- class ChallengeType extends AbstractType
- {
- public function buildForm(FormBuilder $builder, array $options)
- {
- $builder->add('teams', 'collection', array('type' => new TeamType()));
- }
- public function getName()
- {
- return 'challenge';
- }
- }
Add Comment
Please, Sign In to add comment