mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fixed failing test
This commit is contained in:
parent
db15dd6af9
commit
a019f03488
@ -424,7 +424,9 @@ export class Connection {
|
||||
* After finishing with entity manager, don't forget to release it (to release database connection back to pool).
|
||||
*/
|
||||
createIsolatedRepository<Entity>(entityClassOrName: ObjectType<Entity>|string, queryRunner?: QueryRunner): Repository<Entity> {
|
||||
return this.createIsolatedManager(queryRunner).getRepository(entityClassOrName);
|
||||
if (!queryRunner)
|
||||
queryRunner = this.createQueryRunner();
|
||||
return new RepositoryFactory().createRepository(this, this.getMetadata(entityClassOrName), queryRunner);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user