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