public function getDatabaseConnection() { if (!$this->connection) { $this->connection = ConnectionHandler::createConnectionFromDSN($this->getDsn()); } return $this->connection; }