Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace BlackRook\TaskBundle\Form;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\FormBuilder;
- class TasksType extends AbstractType
- {
- public function buildForm(FormBuilder $builder, array $options)
- {
- $builder
- ->add('tasks', 'collection', array(
- "type" => new TaskType(),
- "allow_add" => true,
- "prototype" => true,
- "allow_delete" => true,
- ));
- }
- public function getName()
- {
- return 'tasks';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment