Say I have the following:
export default DS.Model.extend({
analyses: DS.hasMany('analysis', { async: true }),
requiresAuth: Ember.computed.equal('analyses.@each.requiresAuth', true),
isAdjusted: Ember.computed.equal('analyses.@each.isAdjusted', true)
});
The idea is that I can query the top level model to see if any of the child analysis
models have isAdjusted
or requiresAuth
it's not working - hence the question - am I asking too much of ember data + computed?
Aucun commentaire:
Enregistrer un commentaire