In my application, a user can be related to another user, and the relationship status can be either accepted, pending, declined, and no relationship.
In my database, I have a users table, and a relationships table.
Users Table
- id
Relationships Table
- id
- from_user_id
- to_user_id
- status
In Ember, how can I get all users and sort by the relationship status?
Aucun commentaire:
Enregistrer un commentaire