Skip to content

Commit

Permalink
fix FormationRepository import. ref #1083
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Dec 15, 2023
1 parent 6e90788 commit 5171708
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/AppBundle/Form/ShiftType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -17,7 +18,6 @@

class ShiftType extends AbstractType
{

/**
* {@inheritdoc}
*/
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 5171708

Please sign in to comment.