doctrine-bridge icon indicating copy to clipboard operation
doctrine-bridge copied to clipboard

Prevent hide real exception when handler from some reason close transaction/connection

Open lljaworski opened this issue 1 year ago • 1 comments

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.

lljaworski avatar Feb 09 '24 20:02 lljaworski

Probably never gonna get reviewed/merged, see https://github.com/symfony/symfony/issues/57709

devnix avatar Jul 15 '24 07:07 devnix

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?

cr-solutions avatar Aug 28 '25 11:08 cr-solutions