summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
authorwei <>2006-03-12 10:38:37 +0000
committerwei <>2006-03-12 10:38:37 +0000
commit5f66433898f89865a6682ad9aebfeef14b596dea (patch)
treef6c054b431018497493d0380e4ee989597ea2b19 /framework/Data
parent18193d8eff4e5bcb31ade4d3b0747e1aa5e9bf77 (diff)
adding TSQLMap module
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/TDataFieldAccessor.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Data/TDataFieldAccessor.php b/framework/Data/TDataFieldAccessor.php
index af4d6ac0..e0c87add 100644
--- a/framework/Data/TDataFieldAccessor.php
+++ b/framework/Data/TDataFieldAccessor.php
@@ -85,6 +85,8 @@ class TDataFieldAccessor
$getter='get'.$field;
if(is_callable(array($data,$getter)))
return call_user_func(array($data,$getter));
+ else if(in_array($field, array_keys(get_object_vars($data))))
+ return $data->{$field};
}
else // field in the format of xxx.yyy.zzz
{