We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7146f78 commit c0ac765Copy full SHA for c0ac765
core/model/Model.php
@@ -24,7 +24,8 @@ public function __construct()
24
private function setTable()
25
{
26
if ( ! isset($this->table)) {
27
- $this->table = strtolower(get_class($this));
+ $modelName = (new \ReflectionClass($this))->getShortName();
28
+ $this->table = strtolower($modelName);
29
}
30
31
0 commit comments