[PR #9239] Make PrimaryReadReplicaConnection enforcement explicit #11457

Open
opened 2026-01-22 16:10:50 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/9239

State: closed
Merged: Yes


Due a breaking API change with assumptions of PrimaryReadReplicaConnection in DBAL 3 without the distinction of query and executeStatement it is required to address the use of primary replica connection more explicitly in ORM.

This isn't the most pretty solution, but it detects the use of primary replica connection at the right points: 1. id generation 2. commit 3. DQL update/delete statements.

**Original Pull Request:** https://github.com/doctrine/orm/pull/9239 **State:** closed **Merged:** Yes --- Due a breaking API change with assumptions of `PrimaryReadReplicaConnection` in DBAL 3 without the distinction of `query` and `executeStatement` it is required to address the use of primary replica connection more explicitly in ORM. This isn't the most pretty solution, but it detects the use of primary replica connection at the right points: 1. id generation 2. commit 3. DQL update/delete statements.
admin added the pull-request label 2026-01-22 16:10:50 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#11457