Joel,
I'm almost done writing up the model plugin, but I haven't quite finished it b/c the model layer is almost impossible to write up all use cases, including this one.
The associations are typically used for the opposite of lazy-loading -> loading a instance with its associations at one time.
My guess is that you want to get a file and open it's children. I don't think you need associations for this. What you probably want is something like:
$.Model.extend("Entry",{
},{
children : function(success, error){
var self = this;
if(this._children){
success(this._children);
}else{
this.Class.findAll({parentId:
this.id}, function(entries){
self._children = entries;
success(entries);
})
}
}
})