dmaicher / doctrine-test-bundle

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

fix StaticDriver usage #23

Closed dmaicher closed 7 years ago

dmaicher commented 7 years ago

In some scenarios where the doctrine dbal connection was configured using 'url: ...' the StaticDriver was not used because Doctrine ignores the 'driverClass' param in that case :(

See https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/DriverManager.php#L403

The issue was reported here where we use sqlite configured with url: ...: https://github.com/symfony/symfony-demo/pull/555