Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLean up implicit relationships on record unload #2807

Merged
merged 1 commit into from
Feb 20, 2015

Conversation

igorT
Copy link
Member

@igorT igorT commented Feb 20, 2015

Previously if you had records such as:

var Group = DS.Model.extend({
  people: hasMany('person')
});

var Person = DS.Model.extend({
  name: attr()
});

If you unloaded the person, it would not get removed from it's group.
We now properly clean the implicit relationships, so now the person gets
removed properly.

Previously if you had records such as:
```
var Group = DS.Model.extend({
  people: hasMany('person')
});

var Person = DS.Model.extend({
  name: attr()
});
```

If you unloaded the person, it would not get removed from it's group.
We now properly clean the implicit relationships, so now the person gets
removed properly.
igorT added a commit that referenced this pull request Feb 20, 2015
CLean up implicit relationships on record unload
@igorT igorT merged commit 8d00fae into master Feb 20, 2015
@igorT igorT deleted the cleanup_implicit_on_unload branch February 20, 2015 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant