File tree 1 file changed +2
-3
lines changed
src/Symfony/Component/Messenger/Bridge/Doctrine/Transport
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Messenger \Bridge \Doctrine \Transport ;
13
13
14
- use Doctrine \DBAL \Driver \PDO \Connection as DoctrinePdoConnection ;
15
14
use Doctrine \DBAL \Schema \Table ;
16
15
17
16
/**
@@ -73,8 +72,8 @@ public function get(): ?array
73
72
if (method_exists ($ this ->driverConnection , 'getNativeConnection ' )) {
74
73
$ wrappedConnection = $ this ->driverConnection ->getNativeConnection ();
75
74
} else {
76
- $ wrappedConnection = $ this ->driverConnection -> getWrappedConnection () ;
77
- if (! $ wrappedConnection instanceof \ PDO && $ wrappedConnection instanceof DoctrinePdoConnection ) {
75
+ $ wrappedConnection = $ this ->driverConnection ;
76
+ while ( method_exists ( $ wrappedConnection, ' getWrappedConnection ' ) ) {
78
77
$ wrappedConnection = $ wrappedConnection ->getWrappedConnection ();
79
78
}
80
79
}
You can’t perform that action at this time.
0 commit comments