original_string: protected function createConstraintViolationResponse(ConstraintViolationListInterface $violationList)
      {
          $errors = $this->validationErrorFormatter->groupViolationsByField($violationList);
  
          return $this->createJsonResponse(
              ['errors' => $errors],
              422
          );
      }
code: protected function createConstraintViolationResponse(ConstraintViolationListInterface $violationList)
      {
          $errors = $this->validationErrorFormatter->groupViolationsByField($violationList);
  
          return $this->createJsonResponse(
              ['errors' => $errors],
              422
          );
      }
code_tokens: protected function createConstraintViolationResponse ( ConstraintViolationListInterface $ violationList ) { $ errors = $ this -> validationErrorFormatter -> groupViolationsByField ( $ violationList ) ; return $ this -> createJsonResponse ( [ 'errors' => $ errors ] , 422 ) ; }
docstring: Create a response for constraint violations
  
  @param  ConstraintViolationListInterface $violationList
  @return JsonResponse
docstring_tokens: Create a response for constraint violations