Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

associations seem to not work at all #10

Open
tjwebb opened this issue Dec 24, 2014 · 2 comments
Open

associations seem to not work at all #10

tjwebb opened this issue Dec 24, 2014 · 2 comments

Comments

@tjwebb
Copy link
Contributor

tjwebb commented Dec 24, 2014

It looks like association keys are stored as integers, however this leads to a problem. Couchdb stores ids as strings, so all my associations fail because, e.g.

foreign key: 55368
actual id: 55368fce8b9939ff4a28acfafd065e07

Am I missing something obvious?

@henryboldi
Copy link

Any updates?

@GabeDeLaO
Copy link

I have run into this same issue trying to use the associations within Sails.

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')....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants