coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.73k stars 240 forks source link

persistence.migrations does not assign entityMeta #149

Open hisapy opened 10 years ago

hisapy commented 10 years ago

When using persistence.migrations and then using persistence.define('entityName') to load an entity "class" there are no fields in the entityMeta for the class. The entityMeta should contain the latest migration meta (the current db table schema).