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

Accept driver-level statement as a wrapper-level statement constructor argument #4950

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

morozov
Copy link
Member

@morozov morozov commented Nov 6, 2021

Q A
Type improvement
BC Break no

By calling Connection::getWrappedConnection(), the wrapper statement breaks encapsulation of the connection. Instead, the wrapper connection should call prepare() on its wrapped connection and pass the result to the wrapper statement.

derrabus
derrabus previously approved these changes Nov 6, 2021
@derrabus derrabus merged commit 6350481 into doctrine:3.2.x Nov 6, 2021
@morozov morozov deleted the statement-constructor-argument branch November 6, 2021 06:21
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants