nl_tokens: When an adapter s createRecord updateRecord or deleteRecord resolves with data this method extracts the ID from the supplied data .
pl_tokens: function ( record , data ) { var oldId = get ( record , 'id' ) , id = coerceId ( data . id ) ; Ember . assert ( "An adapter cannot assign a new id to a record that already has an id. " + <mask> + " had id: " + oldId + " and you tried to update it with " + id + ". This likely happened because your server returned data in response to a find or update that had a different id than the one you sent." , oldId === null || id === oldId ) ; this . typeMapFor ( record . constructor ) . idToRecord [ id ] = record ; set ( record , 'id' , id ) ; }