diff --git a/src/Record.php b/src/Record.php index eaf5ce2..d790030 100644 --- a/src/Record.php +++ b/src/Record.php @@ -72,6 +72,8 @@ public function __construct() if ($table !== null) { $this->setTable($table); + } else if ($this->table !== null) { + $this->setTable($this->table); } else { $this->setTableFromClassName($class); }