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