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

Honor explicit inverse names with hasMany fields #62

Merged
merged 1 commit into from
May 11, 2014

Conversation

samuraisam
Copy link
Contributor

This was causing an exception when loading saved records.

EG:

var Node = DS.Model({
  parent: DS.belongsTo('node', {inverse: 'children'}),
  children: DS.belongsTo('node', {inverse: 'parent'})
});

Causes an exception which describes itself as can not find model "children" - because it was looking up the type based on a singularized version of the key.

this was causing an exception when loading saved records
kurko added a commit that referenced this pull request May 11, 2014
Honor explicit inverse names with hasMany fields
@kurko kurko merged commit fe6a3e4 into locks:master May 11, 2014
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.

2 participants