Closed kapouer closed 10 years ago
thanks !
When given a modelName, the SQL adapters already have correct tableName translation in BaseSQL.prototype.table
, unfortunately, that approach is not used in mongo adapter.
So my fix is wrong - i should have fixed the mongo (and possibly others) adapter to use a similar
approach, i.e. use models[modelName].tableName everywhere it is needed.
I'll submit pull requests today to fix this.
It appears it's relatively easy to use settings.table without having to rewrite all adapters. It's working all right in my app - for now -