From 04a0ca5aab2f19fe7349d2796534e71d5142d6a2 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Mon, 26 Aug 2013 19:49:39 +0200 Subject: [PATCH] revert accidental change in db ActiveRecord --- framework/yii/db/ActiveRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/db/ActiveRecord.php b/framework/yii/db/ActiveRecord.php index 9215550..5aa9807 100644 --- a/framework/yii/db/ActiveRecord.php +++ b/framework/yii/db/ActiveRecord.php @@ -268,7 +268,7 @@ class ActiveRecord extends Model */ public static function tableName() { - return static::getTableSchema()->name; + return 'tbl_' . Inflector::camel2id(StringHelper::basename(get_called_class()), '_'); } /**