diff --git a/ConnectionFactory.php b/ConnectionFactory.php index 537700251..46d299698 100644 --- a/ConnectionFactory.php +++ b/ConnectionFactory.php @@ -52,7 +52,6 @@ public function createConnection(array $params, Configuration $config = null, Ev { if (!$this->initialized) { $this->initializeTypes(); - $this->initialized = true; } $connection = DriverManager::getConnection($params, $config, $eventManager); @@ -85,5 +84,6 @@ private function initializeTypes() $this->commentedTypes[] = $type; } } + $this->initialized = true; } }