typeorm-transactional-cls-hooked
typeorm-transactional-cls-hooked copied to clipboard
The RelationLoader ignore the CLS transaction
Hey,
how do you manage to use the transactional entity manager for the relation loader?
When I take a look at the code, I can see that it's use
this.connection.createQueryBuilder(queryRunner)
I try to do :
await candidateFilesService.getRepo().
createQueryBuilder()
.useTransaction(true)
.relation(CandidateEntity, 'candidateFile')
.of(c1).loadOne()
hey @fstn, can you provide a minimal reproduction repo?