mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-24 21:17:49 +08:00
ActiveRecord::tableName() hardcoded prefix fix
This commit is contained in:
@ -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()), '_');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user