diff --git a/src/Fufle/ORM/Model.php b/src/Fufle/ORM/Model.php index 047ddbd..ee2587a 100644 --- a/src/Fufle/ORM/Model.php +++ b/src/Fufle/ORM/Model.php @@ -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(); }