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

Use decorator approach #58

Closed
wants to merge 13 commits into from
Closed

Use decorator approach #58

wants to merge 13 commits into from

Conversation

Jean85
Copy link
Member

@Jean85 Jean85 commented Apr 1, 2022

The approach that I followed in #55 revealed to be incomplete:

  • PrimaryReadReplicaConnection shouldn't have been deleted
  • there are multiple deprecations in DBAL that are triggered only if the method is called from outside

To avoid restoring the ConnectionTrait approach, and solve the deprecations issue, I'm trying this approach, that basically consists in using the decorator pattern.

It seems to work already with the Mysqli driver, while with PDO it's still failing; I probably need to restore the rebind of parameters to make it work.

@Jean85 Jean85 added this to the 2.0 milestone Apr 1, 2022
@Jean85 Jean85 self-assigned this Apr 1, 2022
@Jean85
Copy link
Member Author

Jean85 commented Apr 1, 2023

Closing as superseeded by #68 and #69

@Jean85 Jean85 closed this Apr 1, 2023
@Jean85 Jean85 deleted the use-decorator-approach branch April 1, 2023 21:45
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.

None yet

1 participant