Closed PhilWaldmann closed 10 years ago
include()
should just support
Model.include('relation.my_scope').exec(function(records){
});
and we need a additional method fetch
to support count
eager loading
e.g.
Model.fetch('count').exec(function(result, fetchResult){
});
or
Model.fetch(Relation.where()).exec(function(result, fetchResult){
});
first step is done with 0.17 More is comming with 1.0 - but it will break something
we even get cross-store relations with the next release
Model.include()
should support the following:or
or just with a custom scope
and with params
or with a single record