getEntityRepository<O extends Object> method
Implementation
@override
EntityRepository<O>? getEntityRepository<O extends Object>(
{O? obj, Type? type, String? name, String? tableName}) {
if (isClosed) return null;
if (_callingGetEntityRepository) return null;
_callingGetEntityRepository = true;
try {
return _getEntityRepositoryImpl<O>(
obj: obj, type: type, name: name, tableName: tableName) ??
EntityRepositoryProvider.globalProvider
.getEntityRepository<O>(obj: obj, type: type, name: name);
} finally {
_callingGetEntityRepository = false;
}
}