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