getEntityRepositoryByType<O extends Object> method
Implementation
EntityRepository<O>? getEntityRepositoryByType<O extends Object>(Type type) {
if (isClosed) return null;
if (_callingGetEntityRepository) return null;
_callingGetEntityRepository = true;
checkInitialized();
try {
var entityRepository = _getEntityRepositoryByTypeImpl<O>(type);
if (entityRepository != null) {
return entityRepository;
}
if (!identical(this, _globalProvider)) {
return _globalProvider._getEntityRepositoryByTypeImpl<O>(type);
}
return null;
} finally {
_callingGetEntityRepository = false;
}
}