| @@ 1247-1257 (lines=11) @@ | ||
| 1244 | /** |
|
| 1245 | * @return \Doctrine\DBAL\Driver\Connection|false |
|
| 1246 | */ |
|
| 1247 | private function getDoctrinePDOConnection() |
|
| 1248 | { |
|
| 1249 | if ($this->doctrine_connection) { |
|
| 1250 | $doctrineWrappedConnection = $this->doctrine_connection->getWrappedConnection(); |
|
| 1251 | if ($doctrineWrappedConnection instanceof \Doctrine\DBAL\Driver\PDOConnection) { |
|
| 1252 | return $doctrineWrappedConnection; |
|
| 1253 | } |
|
| 1254 | } |
|
| 1255 | ||
| 1256 | return false; |
|
| 1257 | } |
|
| 1258 | ||
| 1259 | /** |
|
| 1260 | * Get errors from "$this->errors". |
|
| @@ 1539-1549 (lines=11) @@ | ||
| 1536 | /** |
|
| 1537 | * @return bool |
|
| 1538 | */ |
|
| 1539 | public function isDoctrinePDOConnection(): bool |
|
| 1540 | { |
|
| 1541 | if ($this->doctrine_connection) { |
|
| 1542 | $doctrineWrappedConnection = $this->doctrine_connection->getWrappedConnection(); |
|
| 1543 | if ($doctrineWrappedConnection instanceof \Doctrine\DBAL\Driver\PDOConnection) { |
|
| 1544 | return true; |
|
| 1545 | } |
|
| 1546 | } |
|
| 1547 | ||
| 1548 | return false; |
|
| 1549 | } |
|
| 1550 | ||
| 1551 | /** |
|
| 1552 | * Check if db-connection is ready. |
|