summaryrefslogtreecommitdiff
path: root/framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php
diff options
context:
space:
mode:
authorwei <>2006-07-28 00:02:13 +0000
committerwei <>2006-07-28 00:02:13 +0000
commitcaa348ceabba58447bf8deddb8c6316ff3dc88ce (patch)
treeccb2f2215f07be6ed1694c403f54ee75c005d397 /framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php
parent5c1132f6da292a689bc52bd7f20a83ff8d733fbd (diff)
Fixed nested GroupBy resultMap
Diffstat (limited to 'framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php')
-rw-r--r--framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php b/framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php
index dbd4d6e7..e4177be0 100644
--- a/framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php
+++ b/framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php
@@ -96,12 +96,16 @@ class TPropertyAccess
return true;
}
- public static function set(&$object, $path, $value)
+ public static function set(&$originalObject, $path, $value)
{
$properties = explode('.', $path);
$prop = array_pop($properties);
if(count($properties) > 0)
- $object = self::get($object, implode('.',$properties));
+ $object = self::get($originalObject, implode('.',$properties));
+ else
+ $object = &$originalObject;
+
+ //var_dump($object);
if(is_array($object) || $object instanceof ArrayAccess)
{
$object[$prop] = $value;