diff options
Diffstat (limited to 'framework/DataAccess/SQLMap/Configuration/TDomSqlMapBuilder.php')
-rw-r--r-- | framework/DataAccess/SQLMap/Configuration/TDomSqlMapBuilder.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/DataAccess/SQLMap/Configuration/TDomSqlMapBuilder.php b/framework/DataAccess/SQLMap/Configuration/TDomSqlMapBuilder.php index 0d1172b0..e43e362d 100644 --- a/framework/DataAccess/SQLMap/Configuration/TDomSqlMapBuilder.php +++ b/framework/DataAccess/SQLMap/Configuration/TDomSqlMapBuilder.php @@ -48,11 +48,11 @@ class TDomSqlMapBuilder public function build(SimpleXMLElement $document)
{
$this->_document = $document;
- $this->initialize($document);
+ $this->initializeSQLMap($document);
return $this->_sqlMapper;
}
- protected function initialize($document)
+ protected function initializeSQLMap($document)
{
$this->_sqlMapper = new TSqlMapper(new TTypeHandlerFactory);
@@ -81,6 +81,7 @@ class TDomSqlMapBuilder foreach($document->xpath('//sqlMap') as $sqlmap)
$this->loadSqlMappingFiles($sqlmap);
+ $this->resolveResultMapping();
if($this->_sqlMapper->getIsCacheModelsEnabled())
$this->attachCacheModel();
@@ -216,7 +217,6 @@ class TDomSqlMapBuilder $resource = $this->getResourceFromPath((string)$node['resource']);
$sqlmap = $this->getConfigAsXmlDocument($resource);
$this->configureSqlMap($sqlmap,$resource);
- $this->resolveResultMapping();
}
protected function getResourceFromPath($resource)
|