# How to track and rollback relationships?

**URL:** <https://discuss.emberjs.com/t/how-to-track-and-rollback-relationships/6256>\
**Category:** Ember Data\
**Created:** [September 12, 2014, 7:27pm UTC](https://discuss.emberjs.com/t/how-to-track-and-rollback-relationships/6256 "2014-09-12T19:27:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![lookingsideways](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/lookingsideways/32/13652_2.png) [@lookingsideways](https://discuss.emberjs.com/u/lookingsideways)\
**Post date:** [October 2, 2014, 9:37pm UTC](https://discuss.emberjs.com/t/how-to-track-and-rollback-relationships/6256/4 "2014-10-02T21:37:38Z")

</div>

> [@kevinjalbert](#):
>
> What I end up doing is creating a new virtual variable on the controller for the user

I have just done something similar but for a hasMany, I’ve put up the basics here in case it helps anyone else out: [Example of manual relationship tracking with "virtual" vars to allow for rollback of relationships in ember data · GitHub](https://gist.github.com/kevinansfield/006e403e9429cb04e608)

I’m definitely interested to see if there are better solutions out there.

@workmanw: That “BufferProxy” looks interesting, have you run into any issues with it?

---

_[View the full topic](https://discuss.emberjs.com/t/how-to-track-and-rollback-relationships/6256)._
