Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-12 17:49:02 +08:00
parent 970f22804d
commit 870595b810
+1 -1
View File
@@ -819,7 +819,7 @@ 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, $table);
var_dump($this->table, static::class, $table);
if (!empty($tablePrefix) && !str_starts_with($table, $tablePrefix)) {
$table = $tablePrefix . $table;
}