typeorm-typedi-extensions icon indicating copy to clipboard operation
typeorm-typedi-extensions copied to clipboard

feature: use `TransactionManager` when inside Transactions

Open ianwremmel opened this issue 5 years ago • 4 comments

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?

ianwremmel avatar Mar 29 '20 17:03 ianwremmel

I have the same question.

sguduguntla avatar Jun 02 '20 04:06 sguduguntla

Same question here. Would be nice if that is possible

eechava6 avatar Jun 05 '20 19:06 eechava6

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.

dolsup avatar Sep 15 '20 08:09 dolsup

I don't think this is possible currently.

NoNameProvided avatar Jan 15 '21 20:01 NoNameProvided