getEntityTypeId() != $constraint->type) { $this->context->addViolation($constraint->message, ['%type' => $constraint->type]); } } }