mardi 2 septembre 2014

Ember-Data - Filter Objects of a hasMany relationship


Vote count:

0




Ember 1.7 Ember-Data 1.0.9 Beta Fixture-Adapter Yo Ember-generator


I got a user model and a week model. Each user has x weeks and a week has 1 user. (It's a duty roster app).


I have a week overview which shows all users an the current selected calendar week of each user. So i have to select only the selected week of each user. If he doesn't have a calendar week yet, i have to create an empty one.


The Question is: how can I filter the relation in the router, model or in the controller so i get only the week which is currently needed? I think the problem is, that i don't use the filter or filterBy function the correct way.



asked 59 secs ago







Ember-Data - Filter Objects of a hasMany relationship

Aucun commentaire:

Enregistrer un commentaire