diff --git a/model/Model.php b/model/Model.php index ed3dd5b..5dfe6ae 100644 --- a/model/Model.php +++ b/model/Model.php @@ -128,8 +128,8 @@ abstract class Model public function table() { if (! $this->table) { - $this->table = rtrim(strtolower(get_class($this)), 'model'); + $this->table = substr(strtolower(get_class($this)), 0, -5/*strlen('Model')*/); } return $this->table; } -} \ No newline at end of file +}