emberjs/data — pull request #1092 by robmonie (2013-07-22 14:16:35+00:00)
Title: WIP: RESTAdapter correctly orders saves to ensure ids are available when saving related records

Relates to my comment on pull request https://github.com/emberjs/data/pull/724#issuecomment-21335411

This is a work in progress with a basic test for the work done so far.

When multiple related records are created and saved at once, records that depend on the ids of related records to be saved first have their saving deferred and only get posted to the server once their dependent ids are resolved. No support is yet provided for bulk APIs.