dmaicher / doctrine-test-bundle

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

Static connection isn't working with DBAL MasterSlaveConnection #106

Closed aivchen closed 4 years ago

aivchen commented 4 years ago

I use DBAL MasterSlaveConnection in my project. After update to 6.3.0 version if enable_static_connection: true I get an error: Did not find key "dama.connection_name" inside connection params.

What am I missing?

dmaicher commented 4 years ago

Can you try release 6.2.1 instead of 6.3.0?

aivchen commented 4 years ago

Yes, 6.2.1 works perfectly.

dmaicher commented 4 years ago

Ok thanks for the info. I will try to reproduce this and provide a fix

dmaicher commented 4 years ago

@Groonya I was able to reproduce it. Can you confirm this fix works?

https://github.com/dmaicher/doctrine-test-bundle/pull/107/files

aivchen commented 4 years ago

So fast:) There are no any errors anymore, thanks!

dmaicher commented 4 years ago

New release tagged: https://github.com/dmaicher/doctrine-test-bundle/releases/tag/v6.3.1