From 5f66433898f89865a6682ad9aebfeef14b596dea Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 12 Mar 2006 10:38:37 +0000 Subject: adding TSQLMap module --- framework/Data/TDataFieldAccessor.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework/Data/TDataFieldAccessor.php') 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 { -- cgit v1.2.3