Skip to content

Commit c0ac765

Browse files
committed
fixed issue #2
1 parent 7146f78 commit c0ac765

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/model/Model.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public function __construct()
2424
private function setTable()
2525
{
2626
if ( ! isset($this->table)) {
27-
$this->table = strtolower(get_class($this));
27+
$modelName = (new \ReflectionClass($this))->getShortName();
28+
$this->table = strtolower($modelName);
2829
}
2930
}
3031

0 commit comments

Comments
 (0)