code: function getCustomRepository(RepositoryClass, knex, entityModel) {
    validate.inheritsFrom(
      RepositoryClass,
      EntityRepository,
      'Custom repository class must inherit from EntityRepository'
    );
    return memoizedGetCustomRepository(...arguments);
  }
docs: Get repository singleton for a given db and entity. Also passes any given arguments in addition to mandatory first
  three to the constructor
  @param {class<T>} RepositoryClass
  @param {Knex} knex
  @param {Model} entityModel
  @returns {T}