| @@ 1211-1221 (lines=11) @@ | ||
| 1208 | /** |
|
| 1209 | * @return false|\Doctrine\DBAL\Driver\Connection |
|
| 1210 | */ |
|
| 1211 | private function getDoctrinePDOConnection() |
|
| 1212 | { |
|
| 1213 | if ($this->doctrine_connection) { |
|
| 1214 | $doctrineWrappedConnection = $this->doctrine_connection->getWrappedConnection(); |
|
| 1215 | if ($doctrineWrappedConnection instanceof \Doctrine\DBAL\Driver\PDOConnection) { |
|
| 1216 | return $doctrineWrappedConnection; |
|
| 1217 | } |
|
| 1218 | } |
|
| 1219 | ||
| 1220 | return false; |
|
| 1221 | } |
|
| 1222 | ||
| 1223 | /** |
|
| 1224 | * Get errors from "$this->errors". |
|
| @@ 1493-1503 (lines=11) @@ | ||
| 1490 | /** |
|
| 1491 | * @return bool |
|
| 1492 | */ |
|
| 1493 | public function isDoctrinePDOConnection(): bool |
|
| 1494 | { |
|
| 1495 | if ($this->doctrine_connection) { |
|
| 1496 | $doctrineWrappedConnection = $this->doctrine_connection->getWrappedConnection(); |
|
| 1497 | if ($doctrineWrappedConnection instanceof \Doctrine\DBAL\Driver\PDOConnection) { |
|
| 1498 | return true; |
|
| 1499 | } |
|
| 1500 | } |
|
| 1501 | ||
| 1502 | return false; |
|
| 1503 | } |
|
| 1504 | ||
| 1505 | /** |
|
| 1506 | * Check if db-connection is ready. |
|