table name

This commit is contained in:
Michał Sieciechowicz 2021-02-28 01:03:37 +01:00
parent 7b427ff799
commit 9c5ae5f121
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ abstract class Model {
public static function Check() {
if (static::$table === null) {
static::$table = basename(get_called_class()) . 's';
static::$table = basename(str_replace('\\', '/', get_called_class())) . 's';
}
static::Initialize();
}