summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord/TActiveRecordGateway.php
diff options
context:
space:
mode:
authormikl <>2008-10-16 09:03:39 +0000
committermikl <>2008-10-16 09:03:39 +0000
commit8f5dc4638ef7378db6572aae23b524b8b5a6a1fe (patch)
treebaf797ffe0716fa2b6c1bbdcf251055d110dac10 /framework/Data/ActiveRecord/TActiveRecordGateway.php
parent104100cccd4e7b30ec84ed055fb78745dd94b5b0 (diff)
Ticket #891 (changed to non-static method)
Diffstat (limited to 'framework/Data/ActiveRecord/TActiveRecordGateway.php')
-rw-r--r--framework/Data/ActiveRecord/TActiveRecordGateway.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecordGateway.php b/framework/Data/ActiveRecord/TActiveRecordGateway.php
index 112ec3e8..250fdd5f 100644
--- a/framework/Data/ActiveRecord/TActiveRecordGateway.php
+++ b/framework/Data/ActiveRecord/TActiveRecordGateway.php
@@ -72,7 +72,7 @@ class TActiveRecordGateway extends TComponent
}
elseif ($class->hasMethod(self::TABLE_METHOD))
{
- $value = call_user_func(array(get_class($record),self::TABLE_METHOD));
+ $value = $record->{self::TABLE_METHOD}();
if(empty($value))
throw new TActiveRecordException('ar_invalid_tablename_method',
get_class($record),self::TABLE_METHOD);