codeswarm / sails-couchdb-orm

CouchDB Adapter for the Sails.js ORM Framework, Waterline
36 stars 20 forks source link

Associations do not work properly within Sails #17

Open GabeDeLaO opened 9 years ago

GabeDeLaO commented 9 years ago

Doing this, when there is only one Document for "Parent" it will work, and bring in the associated parent document, however as soon as you add a document to either parent or chlid, it will stop working :

Child.find().populate('parent')....

It's the same thing going from parent to children records.