-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Saving with EmbeddedRecordsMixin does not update related models dirty attributes #4552
Comments
Do you have an example model, payload, and serializer? It would be very helpful for us to try to track this down. |
ping @ewoody ^ |
@igorT seems related to emberjs/rfcs#173 |
I will provide an example by Monday. On 20 October 2016 at 23:37, Christoffer Persson notifications@github.com
|
#2487 is still reproducible on "ember-data": "^2.4.0", "ember-cli": "2.7.0",
and it is big issue for performance while saving ember data.
Copied issue discription from #2487
No matter what way the serializer is configured in Ember dirty attributes of the relationships records are not updated with those from the response, non dirty attributes are updated though.
The only workaround I have found is to manually go through and mark them individually as willCommit and then didCommit by overriding save on the model - I tried doing this in the serializer for better encapsulation but couldn't get it to work.
If I've specified serialize: 'records' for my serializer when using EmbeddedRecordsMixin I would expect those records to be automatically set as saving/saved etc. along with the parent according to the normal save flow.
The text was updated successfully, but these errors were encountered: