1602 / jugglingdb

Multi-database ORM for nodejs: redis, mongodb, mysql, sqlite3, postgresql, arango, in-memory...
http://1602.github.io/jugglingdb/
2.04k stars 241 forks source link

Fix model.whatTypeName for [] since currently returns undefined #292

Closed marcusgreenwood closed 6 years ago

marcusgreenwood commented 11 years ago

calling model.whatTypeName() on an array [] field currently returns undefined. This results in array fields not being saved correctly since whatTypeName() is called from _forDB() which is called from save()