mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[2.10] Unable to persist entites while using PrimaryReadReplicaConnection #6857
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lp-contentplus on GitHub (Oct 8, 2021).
Issue introduced in:
afa837a361Deprecated method query() calls ensureConnectedToPrimary() inside.
executeQuery() does not.
@beberlei commented on GitHub (Oct 29, 2021):
Good catch. This should maybe use
$conn->executeStatement($sql)instead?@lp-contentplus commented on GitHub (Oct 29, 2021):
executeStatementalso won't work (it returns the number of affected rows instead of the query result)There is no direct replacement for
query()@anarxistkot commented on GitHub (Dec 3, 2021):
Are there any solution options?
We need doctrine/dbal version 3.2 :(
@derrabus commented on GitHub (Dec 21, 2021):
Does 2.10.4 fix your issue?
@ottaviano commented on GitHub (Dec 22, 2021):
I just tested
2.10.4and it works on my side, thanks@derrabus commented on GitHub (Dec 22, 2021):
All right, closing then. Thanks for verifying!