emberjs/data — pull request #28 by ghempton (2012-01-03 21:56:47+00:00)
Title: Another modelCache fix. Re-arrange logic inside of DS.store.create.

... updated after the store's model array has been updated. Fix for #21.

Inside of `DS.Store.create`, `updateModelArrays` was being called before `models[clientId] = model;`. This caused the ModelArray to update it's model cache against a store that wasn't in the correct state.