diff --git a/src/Form/UserCaseFormType.php b/src/Form/UserCaseFormType.php index 7f121d8..1732913 100644 --- a/src/Form/UserCaseFormType.php +++ b/src/Form/UserCaseFormType.php @@ -6,6 +6,7 @@ use App\Entity\User; use App\Entity\UserCase; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -18,6 +19,9 @@ class UserCaseFormType extends AbstractType 'class' => User::class, 'choice_label' => 'name', ]) + ->add('overrideLevel', CheckboxType::class, [ + 'mapped' => false + ]) ; }