Skip to content
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

[FEATURE] support PrimaryReadReplicaConnection (former MasterSlaveConnection) #472

Merged

Conversation

sserbin
Copy link
Contributor

@sserbin sserbin commented Dec 28, 2020

doctrine/dbal v2.11.0 (doctrine/dbal#4054) has deprecated MasterSlaveConnection class in favour of PrimaryReadReplicaConnection
This change adds support for this new PrimaryReadReplicaConnection class
(while being BC-compatible with MasterSlaveConnection on older dbal versions)
and would allow users to use wrapperClass that extends PrimaryPrimaryReadReplicaConnection
(which otherwise fails as this package would try to use master/slave config instead of primary/replica one)

doctrine/dbal v2.11.0 (doctrine/dbal#4054) has deprecated MasterSlaveConnection class in favour of PrimaryReadReplicaConnection
This change adds support for this new PrimaryReadReplicaConnection class
(while being BC-compatible with MasterSlaveConnection on older dbal versions)
and would allow users to use wrapperClass that extends PrimaryPrimaryReadReplicaConnection
(which otherwise fails as this package would try to use master/slave config instead of primary/replica one)
@eigan eigan merged commit db93ed2 into laravel-doctrine:1.7 Mar 3, 2021
@eigan
Copy link
Member

eigan commented Mar 21, 2021

Released with 1.7.6, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants