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

Sort fields from relation table not working #29

Closed
darrylmabini opened this issue May 13, 2021 · 1 comment
Closed

Sort fields from relation table not working #29

darrylmabini opened this issue May 13, 2021 · 1 comment

Comments

@darrylmabini
Copy link

darrylmabini commented May 13, 2021

Is it possible to sort fields from relations table. The Paginator alias can only use the entity name. So if I have these entities and I used EntityOne as the Paginator entity - how can I sort the hello_world column from EntityTwo?

EntityOne

  • entity_one_id
  • foo_bar
  • entity_two_id
  • entityTwo -> joinColumn(entity_two_id)

EntityTwo

  • entity_two_id
  • hello_world

The paginationKeys option will only accepts keyof the used entity which is EntityOne

I tried addOrderBy but no luck.

Any suggestions is highly appreciated - thanks!

@benjamin658
Copy link
Owner

Related to #4

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

2 participants