How to implement REST transaction handling with ember data?


I tried to figure out how to implement transactions. All resources I found aren’t really good. Has someone any good resources of how to realise REST transactions?

If someone implemented transactions combined with ember data then please let us talk.

            self.set('content.invoiceId', parseInt(, 10));
                self.get('content').save().then(self.didSave.bind(self), self.paymentDidNotSave.bind(self));
        }, function(error) {      

wrap the deleteRecord’s in the error handling callbacks of promises and if anything fails make to sure delete everything else