Add Debug Listener for UnitOfWork

Details

Description

Sometimes you need to debug complex scenarios where cascade operations fail or something weird happens in the UnitOfWork. There should be a listener that dumps the state of the identity map in "onFlush" so that you can more easily see whats going on.