emberjs/data — Issue #139: Circular Associations Broken
Author: ghempton
Created: 2012-03-06 23:24:44+00:00
State: open

Previous version of ember-data supported the following:

```javascript
var Person = DS.Model.extend();
var Job = DS.Model.extend();

Person.reopen({
jobs: DS.hasMany(Job)
});

Job.reopen({
person: DS.hasOne(Person);
});
```

After updating to the latest ember-data, binding to the `jobs` property results in a stack overflow. This is caused by an infinite recursion of `store.materializeRecord` calls due to the `recordCache` not containing the parent association when the child association is evaluated. It looks like the internals around when the model notifies observers has changed a lot.

Is this worth exploring on my own or will support for this emerge down the road?