Open reedmaniac opened 10 years ago
Why is the Factory::fire() method trying to build its own table name using $this->parseTableName() instead of using the one defined in the Model itself? Seems like this:
$this->parseTableName()
$this->tableName = $this->parseTableName($class); $this->class = $this->createModel($class);
Could easily become this:
$this->class = $this->createModel($class); $this->tableName = $this->class->getTable();
This was causing a problem as my Eloquent class names and table names do not line up that often.
+1
Why is the Factory::fire() method trying to build its own table name using
$this->parseTableName()
instead of using the one defined in the Model itself? Seems like this:Could easily become this:
This was causing a problem as my Eloquent class names and table names do not line up that often.