This is a subset of PR #87 restricted to handling 422s.
Server 422s invalidate saving models.
- handles `createRecord` and `updateRecord`. Multirecord case is more
complicated because of mapping errors to records.
I like it. It's making my life pleasant until server-side errors make it into the errors object in #181.
Hi. After the record was marked invalid, how to recommit the transaction?
@alexdinu08 The next time you set a property on the record it should transition from the invalid state. Alternatively you can do this manually if you know the record is in an invalid state with record.send("becameValid");
@hjdivad thanks! record.send("becameValid"); worked
@hjdivad the problem is when the record to be saved hasMany objects. when editing the hasMany objects, ember-data will give an error: "...could not respond to event setProperty in state rootState.loaded.created.pending.committing."
@alexdinu08 do you have a jsFiddle or jsbin example?
what's the status on this? would be nice to have. what's the alternative in the meantime?
superseded by #476.