From 0c89d5004461ab705af3c7d92c30aba20a1609cd Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Tue, 17 Mar 2009 21:39:58 +0000 Subject: Fixed Issue #68: TSqlMapConfig::createSqlMapGateway(): assign current connection to cached TSqlMapManager to avoid loosing active transaction --- framework/Data/SqlMap/TSqlMapConfig.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'framework/Data/SqlMap') diff --git a/framework/Data/SqlMap/TSqlMapConfig.php b/framework/Data/SqlMap/TSqlMapConfig.php index 98f2a844..cdf6b541 100644 --- a/framework/Data/SqlMap/TSqlMapConfig.php +++ b/framework/Data/SqlMap/TSqlMapConfig.php @@ -147,6 +147,9 @@ class TSqlMapConfig extends TDataSourceConfig $this->cacheSqlMapManager($manager); } } + else { + $manager->setDbConnection($this->getDbConnection()); + } return $manager->getSqlmapGateway(); } -- cgit v1.2.3