/**
  * Add violation with error message
  *
  * @param $value
  */
 protected function addViolation($value, Constraint $constraint)
 {
     $this->context->addViolation($constraint->message, ['{{ id_field }}' => $constraint->getIdField(), '{{ value }}' => $value], $value);
 }