Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Form;
- use Doctrine\Common\Collections\Collection;
- use Symfony\Bridge\Doctrine\Form\Type\EntityType;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\Extension\Core\Type\CollectionType;
- use Symfony\Component\Form\Extension\Core\Type\SubmitType;
- use Symfony\Component\Form\FormBuilderInterface;
- use Symfony\Component\OptionsResolver\OptionsResolver;
- class TaskType extends AbstractType
- {
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $builder->add('description')->add('tags')
- // add('tags', CollectionType::class,
- // [
- // 'entry_type' => TagType::class,
- // 'allow_add' => true,
- // 'allow_delete' => true,
- // ])
- ->add('zapisz', SubmitType::class);
- }
- public function configureOptions(OptionsResolver $resolver)
- {
- }
- public function getName()
- {
- return 'app_bundle_task_type';
- }
- }
Add Comment
Please, Sign In to add comment