This commit is contained in:
2021-07-06 18:00:37 +08:00
parent 12766a3b74
commit eb6aaf3509
+1 -1
View File
@@ -742,7 +742,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
$table = trim($table, '{{%}}');
if ($tablePrefix) {
$table = '`' . static::getDbName() . '`.' . $tablePrefix . $table;
$table = $tablePrefix . $table;
}
return '`' . static::getDbName() . '`.' . $table;
}