我找不到答案 - 所以,第一次发帖:
以下是模型:
App.File = DS.Model.extend({
toRender: DS.attr('boolean'),
dataPoints: DS.hasMany('DataPoint')
});
App.DataPoint = DS.Model.extend({
file: DS.belongsTo('File'),
etc: DS.attr('number')
)};
我应该能够使用:
仅选择其中etc属性= 123的DataPointsthis.store.filter(App.DataPoint, { etc: 123 }, function (datapoint) {
console.log(datapoint);
});
但是如何交换查询以仅选择其所属文件的ToTender属性设置为true的DataPoints?