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

use `doctrine.middleware` tag for registering middlewares #300

Closed dmaicher closed 1 month ago

dmaicher commented 1 month ago

Fixes https://github.com/dmaicher/doctrine-test-bundle/issues/251

dmaicher commented 1 month ago

@MatTheCat could you maybe test this? For now I set 100 as priority for the middleware. So if you choose a value > 100 for your EnableForeignKeysmiddleware then it should work :crossed_fingers:

MatTheCat commented 1 month ago

@dmaicher I can confirm it makes #299’s test pass when setting EnableForeignKeys’s priority above 100. :tada: