dmaicher / doctrine-test-bundle

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

v8 breaks behat integration #270

Closed aszenz closed 7 months ago

aszenz commented 7 months ago

I get the error An open transaction is needed when doing flush() inside Feature Context file. Downgrading to v7 fixes the issue, as does wrapping the code in wrapInTransaction

dmaicher commented 7 months ago

can you provide a reproducer? Kind of hard to tell whats happening otherwise.

aszenz commented 7 months ago

Reason we get an error on the flush is because we are doing LockMode::PESSIMISTIC_WRITE on one of our finds, this operation requires an active transaction.

I'll try to isolate why the transaction is not started on v8

dmaicher commented 7 months ago

Closing for now. Let me know if there are any updates.