typestack / typeorm-typedi-extensions

Dependency injection and service container integration with TypeORM using TypeDI library.
MIT License
262 stars 37 forks source link

feature: use `TransactionManager` when inside Transactions #40

Open ianwremmel opened 4 years ago

ianwremmel commented 4 years ago

Is it possible to make multiple repository calls within a single transaction using dependency injection? If I'm reading the code correctly, this will always grab repositories off of a connection and therefore outside a transaction.

If it is possible, could that be added to the documentation?

sguduguntla commented 4 years ago

I have the same question.

eechava6 commented 4 years ago

Same question here. Would be nice if that is possible

dolsup commented 4 years ago

Hello, check https://github.com/typeorm/typeorm/issues/1895. It should be helpful.

And take using https://github.com/odavid/typeorm-transactional-cls-hooked into your account.

NoNameProvided commented 3 years ago

I don't think this is possible currently.