emberjs/data — Issue #119: Unable to associate with "this"
Author: joachimhs
Created: 2012-02-24 11:39:23+00:00
State: open

I have a model that refers to itself via the DS.hasMany:

EurekaJ.InstrumentationTreeItem = DS.Model.extend({
primaryKey: 'guiPath',
guiPath: DS.attr('string'),
name: DS.attr('string'),
parentPath: DS.attr('string'),
childrenNodes: DS.hasMany(EurekaJ.InstrumentationTreeItem),
nodeType: DS.attr('string')
});

this fails with the following error message:

Error: assertion failed: The type passed to DS.hasMany must be defined