JeffreyWay/Laravel-4-Generators — pull request #247 by EspadaV8 (2014-01-16 22:49:39+00:00)
Title: Force lowercasing of the tablename before passing it to Doctrine

Running generate:form is currently just returning a submit button for me. I'm not sure if this is because of a different version of the Doctrine ORM or another change elsewhere.

It comes down to the fact that you need to provide a model name, which needs to match the case of the class name, e.g. ```User``` and not ```user```. Attempting to use ```user``` results in an ```InvalidArgumentException``` because the model can't be found.

Doctrine also expects the table name to match the case in the database, and since table names are all lowercased, this seemed like the better place to make the change. Without changing to lowercase the ```->getColumns()``` call just returns an empty array.