I'm testing out the new relations API and have a slight issue but I'm not sure if this is a limitation of the querying API or if I'm just missing something.
The scenerio is that I have 2 tables with a one-to-one relationship between them on a column. For instance:
Users:id - PKname - Stringrole_id - int (with one-to-one on a role)Roles:id - PKname - String
Users:id - PKname - Stringrole_id - int (with one-to-one on a role)Roles:id - PKname - String
I want to be able to order the users by their role name. How I imagined using it would be the following: