doctrine-bridge
doctrine-bridge copied to clipboard
Prevent hide real exception when handler from some reason close transaction/connection
In some cases when the handler closes a connection or transaction the real exception is hidden and logged only last not meaning exception without real reason. There is a need to catch all errors thrown by doctrine and enhance them to be the right ones. The exact issue isn't visible in CLI and other loggers like Sentry or similar.
Probably never gonna get reviewed/merged, see https://github.com/symfony/symfony/issues/57709
Why this is open so long? I can confirm, that we getting in some situations also the error:
"Transaction commit failed because the transaction has been marked for rollback only"
Is there a official way to prevent it without the fix?