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

has-many with sort #136

Open
ursulnegrul opened this issue Sep 9, 2024 · 1 comment
Open

has-many with sort #136

ursulnegrul opened this issue Sep 9, 2024 · 1 comment

Comments

@ursulnegrul
Copy link

Was wondering if I could get this pre-sorted, something like:


$fieldConf = [
        'sessions' => ['has-many' => [Session::class, 'user', 'order' => 'id DESC']],
]        

@ikkez
Copy link
Owner

ikkez commented Jan 19, 2025

You can do this using filter() before doing the actual query, but not as a default configuration right now.
I'll let this open as inspiration for a next version. thanks ;)

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

No branches or pull requests

2 participants