You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)
Steps to reproduce or a small repository showing the problem:
When trying to load a relation from an entity created during a transaction, the relation loader doesn't use the transaction from the provided entity manager.
The following code will return no results if the person entity was created during the current transaction:
* fix: pass queryRunner
pass queryRunner in order to use existing transaction
Closes: #5338
* test: add basic test
add unfinished basic test with explanation to reproduce bahavior
* test: remove only flag
* test: remove only flag
* test: remove logging
remove logging when acquiring connection
* test: automate transaction-load-many
automate transaction-load-many for postgres, mysql, mariadb
Co-authored-by: Lukas Bersinger <7009574+lukinet@users.noreply.github.com>
Issue type:
[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[x]
postgres
[ ]
cockroachdb
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
When trying to load a relation from an entity created during a transaction, the relation loader doesn't use the transaction from the provided entity manager.
The following code will return no results if the person entity was created during the current transaction:
The text was updated successfully, but these errors were encountered: