diff --git a/framework/yii/db/ActiveRecord.php b/framework/yii/db/ActiveRecord.php index cc67224..960e1fb 100644 --- a/framework/yii/db/ActiveRecord.php +++ b/framework/yii/db/ActiveRecord.php @@ -183,7 +183,7 @@ class ActiveRecord extends BaseActiveRecord */ public static function tableName() { - return 'tbl_' . Inflector::camel2id(StringHelper::basename(get_called_class()), '_'); + return static::getDb()->tablePrefix . Inflector::camel2id(StringHelper::basename(get_called_class()), '_'); } /**