src/Form/StepOneType.php line 21

  1. <?php
  2. namespace App\Form;
  3. use App\Entity\Product;
  4. use App\Entity\ProductBrand;
  5. use App\Entity\ProductTradeIn;
  6. use App\Repository\ProductBrandRepository;
  7. use App\Repository\ProductRepository;
  8. use Symfony\Component\Form\AbstractType;
  9. use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
  10. use Symfony\Component\Form\Extension\Core\Type\CollectionType;
  11. use Symfony\Component\Form\Extension\Core\Type\HiddenType;
  12. use Symfony\Component\Form\Extension\Core\Type\IntegerType;
  13. use Symfony\Bridge\Doctrine\Form\Type\EntityType;
  14. use Symfony\Component\Form\Extension\Core\Type\SubmitType;
  15. use Symfony\Component\Form\Extension\Core\Type\TextType;
  16. use Symfony\Component\Form\FormBuilderInterface;
  17. use Symfony\Component\OptionsResolver\OptionsResolver;
  18. class StepOneType extends AbstractType
  19. {
  20.     public function buildForm(FormBuilderInterface $builder, array $options)
  21.     {
  22.         $builder
  23.             ->add('user'UserType::class, [
  24.                  'label' => false
  25.             ])
  26.             ->add('productTradeIn'ProductTradeInType::class, [
  27.                 'label' => false
  28.             ])
  29.         ;
  30.     }
  31. }