repositories/lib/services/repository.factory.js
function getCustomRepository(RepositoryClass, knex, entityModel) {
  validate.inheritsFrom(
    RepositoryClass,
    EntityRepository,
    'Custom repository class must inherit from EntityRepository'
  );
  return memoizedGetCustomRepository(...arguments);
}
function getCustomRepository(RepositoryClass, knex, entityModel) {
  validate.inheritsFrom(
    RepositoryClass,
    EntityRepository,
    'Custom repository class must inherit from EntityRepository'
  );
  return memoizedGetCustomRepository(...arguments);
}
function getCustomRepository ( RepositoryClass , knex , entityModel ) { validate . inheritsFrom ( RepositoryClass , EntityRepository , 'Custom repository class must inherit from EntityRepository' ) ; return memoizedGetCustomRepository ( ... arguments ) ; }
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}
Get repository singleton for a given db and entity . Also passes any given arguments in addition to mandatory first three to the constructor