'class' => Mark::class,
                  
                  
                                  'multiple' => true,
                  
                  
                                  'required' => true,
                  
                  
                                  'constraints' => [
                  
                  
                                      new NotBlank([])
                  
                  
                                  ],
                  
                  
                                  'choices' => $this->markRepository->findAll()
                  
                  
                              ])
                  
                  
                  
                  
                  
                  Вот так успешно все валидируется, даже если чекбоксы не чекед
                  
                  
                
добавить в constraints new IsTrue()
Обсуждают сегодня