emberjs/data — pull request #1418 by pzuraq (2013-10-05 20:12:52+00:00)
Title: Adding unsaved records to hasMany relationships after they are normalized

If there are unsaved records in a hasMany relationship, when the parent record is saved they will necessarily not be in the payload returned by the server. This results in the unsaved records being removed from the relation.

This adds a function that re-adds the unsaved records to the hasMany relationship during the normalization phase, before the parent record is updated.