-
Notifications
You must be signed in to change notification settings - Fork 76
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
Bidirectional hasMany relationship has empty list on the many side #143
Comments
I think you’re missing including the
The child element needs a reference to its parent. In your case, I think you could add this line after you
You also need to save both ends of the relationship, unfortunately, as also mentioned in the readme. After you save all the items, you need to |
You're totally right, @backspace. I changed the code to sth like:
I can't access |
Are you saying that |
@backspace that's right. I'm doing sth like |
hmm, nothing stands out to me apart from the |
In ember-pouch async was not default, #159 could fix this. Which would also remove the need for the save on the hasMany side. |
The issue went away, as per @backspace's suggestion, by adding a serializer inside
|
My models look like:
grn:
grn-item:
This is how i'm trying to do the save:
grn.items
seems to be[]
no matter how many items I add. What is going on?The text was updated successfully, but these errors were encountered: