Revert "改名"
This reverts commit fdf58326
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user