Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$this->tableName and $this->class->getTable() #51

Open
reedmaniac opened this issue Jan 2, 2014 · 1 comment
Open

$this->tableName and $this->class->getTable() #51

reedmaniac opened this issue Jan 2, 2014 · 1 comment

Comments

@reedmaniac
Copy link

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->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.

@ceesvanegmond
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants