dmaicher / doctrine-test-bundle

Symfony bundle to isolate your app's doctrine database tests and improve the test performance
MIT License
1.08k stars 60 forks source link

make it mandatory to enable savepoints for nested transactions #249

Closed dmaicher closed 1 year ago

Chris53897 commented 9 months ago

@dmaicher Sorry for probably stupid question. This is only necessary for env = test ? Or should it be enabled for all environments?

when@test:
    doctrine:
        dbal:
            use_savepoints: true
dmaicher commented 9 months ago

@Chris53897 it would be better to enable it for all environments. Its also deprecated to not enable it with new DBAL versions and always enabled for DBAL 4.

Chris53897 commented 9 months ago

Thanks for the infos