iberflow / laravel-model-generator

Laravel 5 model generator for an existing schema
264 stars 75 forks source link

variable tables does not exist #44

Open flap152 opened 7 years ago

flap152 commented 7 years ago

After installation, any attempt to execute resulted in the error "variable tables does not exist" (exact message might be slightly off because I fixed it ;-)

I traced it to the use of configuration information. The code assumes the default database connection name is one of a few values (mysql, pgsql, etc.) that would also be the name of the database driver. I use multiple (mysql) database connections in my app and my default database connection is not named mysql.

Renaming it fixed the problem for tests, but I also patched the code. I'll probably be asked to submit patch or proposed change, but this is my first GitHub issue report and possible bugfix so bear with me.

Thx