TypeError: Cannot read property 'getTableName' of undefined
I've had this error on numerous occasions. Here are a few things to look for:
- Check that the table name that is included in the query is spelled correctly, check that is it defined correctly.
- If you are running tests and using Mockery, check that Mockery is setup correctly. Try removing Mockery and running the test.