From 51717085a004dd7cfc611baed9ae994397779c62 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Fri, 15 Dec 2023 09:12:05 +0100 Subject: [PATCH] fix FormationRepository import. ref #1083 --- src/AppBundle/Form/ShiftType.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/AppBundle/Form/ShiftType.php b/src/AppBundle/Form/ShiftType.php index 76cb0d779..d8145ac27 100644 --- a/src/AppBundle/Form/ShiftType.php +++ b/src/AppBundle/Form/ShiftType.php @@ -5,6 +5,7 @@ use AppBundle\Entity\Shift; use AppBundle\Form\JobHiddenType; use AppBundle\Repository\JobRepository; +use AppBundle\Repository\FormationRepository; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\IntegerType; @@ -17,7 +18,6 @@ class ShiftType extends AbstractType { - /** * {@inheritdoc} */ @@ -45,13 +45,11 @@ public function buildForm(FormBuilderInterface $builder, array $options) ->orderBy('j.name', 'ASC'); } )); - } else { $builder ->add('start', DateTimeType::class, ['html5' => false, 'date_widget' => 'single_text', 'time_widget' => 'single_text']) ->add('end', DateTimeType::class, ['html5' => false, 'date_widget' => 'single_text', 'time_widget' => 'single_text']) ->add('job', JobHiddenType::class); - } $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) {