sails.js - Waterline / sails-mongo Type _getPK error -


i'm working on table using waterline , change on field form string relation ship , when run error [error (e_unknown) encountered unexpected error] details: typeerror: cannot read property '_getpk' of undefined

before (item model):

attributes: { store: 'string' ....} 

changed (item model):

attributes: {store: {model: 'state'} ....} 

and under state model:

attributes: { items: {collection: 'item', via: 'store' }} 

thanks in advance guys


edit:

i've downgraded sails-mongo@beta , working. i'm not sure why happening.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -