Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-12 17:51:00 +08:00
parent 870595b810
commit 6d83f647f4
-1
View File
@@ -819,7 +819,6 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
throw new Exception('You need add static method `tableName` and return table name.');
}
$table = trim($this->table, '{%}');
var_dump($this->table, static::class, $table);
if (!empty($tablePrefix) && !str_starts_with($table, $tablePrefix)) {
$table = $tablePrefix . $table;
}