You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Tracing/Doctrine/DBAL/TracingDriverConnection.php
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -177,6 +177,18 @@ public function errorCode(): ?string
177
177
thrownew \BadMethodCallException(sprintf('The %s() method is not supported on Doctrine DBAL 3.0.', __METHOD__));
178
178
}
179
179
180
+
/**
181
+
* {@inheritdoc}
182
+
*/
183
+
publicfunctiongetNativeConnection()
184
+
{
185
+
if (!method_exists($this->decoratedConnection, 'getNativeConnection')) {
186
+
thrownewLogicException(sprintf('The decoratedConnection %s does not support accessing the native connection.', \get_class($this->decoratedConnection)));
@@ -194,15 +206,6 @@ public function getWrappedConnection(): DriverConnectionInterface
194
206
return$this->decoratedConnection;
195
207
}
196
208
197
-
publicfunctiongetNativeConnection()
198
-
{
199
-
if (!method_exists($this->decoratedConnection, 'getNativeConnection')) {
200
-
thrownewLogicException(sprintf('The decoratedConnection %s does not support accessing the native connection.', \get_class($this->decoratedConnection)));
0 commit comments