moved tx management from entity repostory to transaction manager