Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defineRelationship and sorting #20

Open
ubay25 opened this issue Mar 9, 2020 · 0 comments
Open

defineRelationship and sorting #20

ubay25 opened this issue Mar 9, 2020 · 0 comments

Comments

@ubay25
Copy link

ubay25 commented Mar 9, 2020

I have this line on my code:
$tbl->defineRelationship("uid", "user_details", "id", "name");

The above returns the names of the users from the associated "user_details" table.
It works as expected but if I sort this field by clicking table header, it doesnt sort by "name" but by the "id".

How can I sort by "name"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant