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

TypeError: Return value of Doctrine\DBAL\Connection::getWrappedConnection() must implement interface Doctrine\DBAL\Driver\Connection, instance of PDO returned #4609

Closed
mvorisek opened this issue Apr 17, 2021 · 3 comments

Comments

@mvorisek
Copy link
Contributor

BC Break Report

Q A
BC Break yes
Version 2.13.0

Summary

connection is created like:

$dbalConnection = DriverManager::getConnection([
    'pdo' => $pdo,
]);

and then used in:

$dbalConnection->executeQuery('DROP TABLE IF EXISTS employee');

which started throwing:

TypeError: Return value of Doctrine\DBAL\Connection::getWrappedConnection() must implement interface Doctrine\DBAL\Driver\Connection, instance of PDO returned

...\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php:1947
...\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php:1277
...\vendor\atk4\dsql\tests\WithDb\TransactionTest.php:33

Previous behaviour

no error

Current behavior

see log above

How to reproduce

see code above

@beberlei
Copy link
Member

Fixed by #4590

@mvorisek
Copy link
Contributor Author

Thanks, I see, fixed with 2.13.1 rel. released 3 hours ago.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants