summaryrefslogtreecommitdiff
path: root/framework/DataAccess/SQLMap/Statements
diff options
context:
space:
mode:
Diffstat (limited to 'framework/DataAccess/SQLMap/Statements')
-rw-r--r--framework/DataAccess/SQLMap/Statements/TMappedStatement.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/DataAccess/SQLMap/Statements/TMappedStatement.php b/framework/DataAccess/SQLMap/Statements/TMappedStatement.php
index dfe7aa9a..3dc100dc 100644
--- a/framework/DataAccess/SQLMap/Statements/TMappedStatement.php
+++ b/framework/DataAccess/SQLMap/Statements/TMappedStatement.php
@@ -968,7 +968,8 @@ class TSQLMapObjectCollectionTree
if(!$found && !empty($parent))
{
$this->_tree[$parent] = array();
- $this->_entries[$parent] = $object;
+ if(!isset($this->_entries[$parent]) || $object !== '')
+ $this->_entries[$parent] = $object;
$this->addNode($this->_tree, $parent, $node);
}
}