-
Notifications
You must be signed in to change notification settings - Fork 263
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
belongsTo working in client local store but are not update on another client #367
Comments
Do you have better luck if you set the inverse to owner: DS.belongsTo('user', { async:true, inverse: null }) I think ember-data may be overwriting the It is annoying, and it seems some change in ember-data recently has caused this to happen more often. Note: I am guessing at this point, setting the inverse to null will help us confirm if something similar is happening here. |
Sorry, didn't mean to close. |
No better luck. Problem is still here. If I leave the conversation and comes back again, message.owner is filled. The problem appears just on the page reload. |
Hi, maybe it's related to this #364. I don't know.
So I have two model with a belongsTo relationship like this :
and
In my template i test this case like this :
When i add a message to the conversation, all works fine. But if i reload the page or connect as another user , i see the new message but message.owner.id is null.
This is the code that save the message
Any idea?
The text was updated successfully, but these errors were encountered: