balderdashy / waterline-cursor

Association/subquery helper
1 stars 11 forks source link

Populate only populates first row #10

Open joseph-d-rodriguez opened 9 years ago

joseph-d-rodriguez commented 9 years ago

Hi,

My project ran into a situation where populating our queries only populates the first row, and the subsequent rows all have empty JSON objects (not even the original IDs). I've rebuilt a scenario with the same results. Please checkout my code here: https://github.com/joseph-d-rodriguez/populate-fail-example.git Be sure to use my script to build a simple database and tables with data. And sorry for the oddly-named columns/model-fields.

I know this is a odd database missing quite a few things, but this is essentially what we have, and I was wondering why this doesn't work. Please advise.

Thanks!

joseph-d-rodriguez commented 9 years ago

Also, I've created a pull request with what I believe to be a fix for this here: https://github.com/balderdashy/waterline-cursor/pull/9