emberjs/data — pull request #685 by robmonie (2013-02-02 11:23:11+00:00)
Title: JSON serializer augments hash with null value for null belongsTo relatio...

...nships to ensure that the value is transmitted by the adapter.

I was finding that when nulling belongsTo relationships and committing the store, that the resulting hash used in PUT requests did not contain the nulled value against the key for the relationship. This meant that the server was never aware that it needed to null the value.

This change ensures that belongsTo keys are always present with either an id or null value depending on the presence of the related model.