summaryrefslogtreecommitdiff
path: root/framework/Data/TDataFieldAccessor.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data/TDataFieldAccessor.php')
-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
{