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

Merge 3.9.x up into 4.2.x #6570

Merged
merged 4 commits into from
Oct 23, 2024
Merged

Merge 3.9.x up into 4.2.x #6570

merged 4 commits into from
Oct 23, 2024

Conversation

greg0ire
Copy link
Member

No description provided.


$conn->setAutoCommit(false);

$conn->getServerVersion(); // causes a call to connect(), which is protected
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simPod do you have a better idea for this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we can't use beginTransaction, this will do. Or getNativeConnection but there's no difference.

Suggested change
$conn->getServerVersion(); // causes a call to connect(), which is protected
$conn->getServerVersion(); // Invoke protected `connect()`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$conn->getServerVersion(); // causes a call to connect(), which is protected
/** Invoke protected {@see Connection::connect()} */
$conn->getServerVersion();

@greg0ire greg0ire merged commit afcd624 into doctrine:4.2.x Oct 23, 2024
91 checks passed
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.

3 participants