-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the ability to extend StaticDriver for greater flexibility #291
Conversation
How exactly does your doctrine dbal config look like for the test environment? |
|
You mentioned
But that is not what you have configured? You have
So the default and read replica connection are using the exact same database? Interesting setup 🤔 |
Production:
Test: 2 connections with the same connection params to the 1 database |
In the end this is related to #289 I'm not sure how to fix this properly yet. I don't see |
Now I wrote a copy of your StaticDriver with changes in param hash and did
And add into services_test.yaml
And set keep static connection to the true in the bootstrap.php(phpunit)
|
But this is not the best way, because I have to rewrite this every time you release :)) |
See #289 (comment) I think this should solve such problems |
@dmaicher Yes, closing this PR. |
Hi!
I use this package to run tests, but have some troubles with it.
I have 2 connections to different databases in the production. Master server had one database and local servers that have their own databases and database replicated from master server. Doctrine have 2 connections. For the tests I want to have 1 connection to two local databases without replication. But they have different SHA hash string, and I cannot see transactions that I made with first database on the second connenction.
With this changes I will be able to extend StaticDriver and get hash from only a few parameters, for example: