message: refactor(utils::getName): rename a parameter to be more intuitive
diff: @@ -315,9 +315,9 @@ export function getRightTarget(target: any): any {
  * Get the Class's final name
  * (combines all available options to generate a name)
  * @param cl The Class to get the name for
  - * @param customOptions Extra Options that can be added in "buildSchema"
  + * @param overwriteOptions Overwrite ModelOptions to generate a name from (Only name related options are merged)
  */
  -export function getName<U extends AnyParamConstructor<any>>(cl: U, customOptions?: IModelOptions) {
  +export function getName<U extends AnyParamConstructor<any>>(cl: U, overwriteOptions?: IModelOptions) {
  // this case (cl being undefined / null) can happen when type casting (or type being "any") happened and wanting to throw a Error (and there using "getName" to help)
  // check if input variable is undefined, if it is throw a error (cannot be combined with the error below because of "getRightTarget")
  assertion(!isNullOrUndefined(cl), () => new NoValidClassError(cl));
  @@ -326,7 +326,7 @@ export function getName<U extends AnyParamConstructor<any>>(cl: U, customOptions
  const options: IModelOptions = Reflect.getMetadata(DecoratorKeys.ModelOptions, ctor) ?? {};
  const baseName: string = ctor.name;
  - const customName = customOptions?.options?.customName ?? options.options?.customName;
  + const customName = overwriteOptions?.options?.customName ?? options.options?.customName;
  if (typeof customName === 'function') {
  const name = customName(options);
  @@ -339,10 +339,10 @@ export function getName<U extends AnyParamConstructor<any>>(cl: U, customOptions
  return name;
  }
  - const automaticName = customOptions?.options?.automaticName ?? options.options?.automaticName;
  + const automaticName = overwriteOptions?.options?.automaticName ?? options.options?.automaticName;
  if (automaticName) {
  - const suffix = customName ?? customOptions?.schemaOptions?.collection ?? options.schemaOptions?.collection;
  + const suffix = customName ?? overwriteOptions?.schemaOptions?.collection ?? options.schemaOptions?.collection;
  return !isNullOrUndefined(suffix) ? `${baseName}_${suffix}` : baseName;
  }
  