Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function isValid(FormInterface $form)
 {
     $errors = $this->validator->validate($form->getModelData(), null, $form->getValidationGroups());
     if ($errors->count()) {
         $this->constraintViolationMapper->mapErrorsToForm($errors, $form);
         return false;
     }
     return true;
 }