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

Usage of PrimaryReadReplicaConnection is failing #49

Closed
mordilion opened this issue Apr 20, 2021 · 3 comments
Closed

Usage of PrimaryReadReplicaConnection is failing #49

mordilion opened this issue Apr 20, 2021 · 3 comments

Comments

@mordilion
Copy link

mordilion commented Apr 20, 2021

When I am using the PrimaryReadReplicaConnection class to set up a Primary/Replica connection, then I am facing the following issue:

Argument 2 passed to Facile\DoctrineMySQLComeBack\Doctrine\DBAL\Statement::__construct() must be an instance of Facile\DoctrineMySQLComeBack\Doctrine\DBAL\Connection, instance of Facile\DoctrineMySQLComeBack\Doctrine\DBAL\Connections\PrimaryReadReplicaConnection given, called in vendor/facile-it/doctrine-mysql-come-back/src/ConnectionTrait.php on line 212 and defined in vendor/facile-it/doctrine-mysql-come-back/src/Statement.php:40

My guess is that the Statement actually needs ConnectionInterface as the second parameter instead of Connection.

I am using the latest version 1.10.0.

@Jean85
Copy link
Member

Jean85 commented Apr 20, 2021

Does #48 fix your issue?

@mordilion
Copy link
Author

Yes, that would solve the issue.

@thomasvargiu
Copy link
Member

The hotifx is merged and published in 1.10.1

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

No branches or pull requests

3 participants