Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -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.');
|
throw new Exception('You need add static method `tableName` and return table name.');
|
||||||
}
|
}
|
||||||
$table = trim($this->table, '{%}');
|
$table = trim($this->table, '{%}');
|
||||||
var_dump($this->table, static::class, $table);
|
|
||||||
if (!empty($tablePrefix) && !str_starts_with($table, $tablePrefix)) {
|
if (!empty($tablePrefix) && !str_starts_with($table, $tablePrefix)) {
|
||||||
$table = $tablePrefix . $table;
|
$table = $tablePrefix . $table;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user