-
Notifications
You must be signed in to change notification settings - Fork 109
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
filter slug and underscore #627
Comments
Please can you share the filter code on the relevant adapter? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm trying to filter my resource with a slug containing an underscore
alpha_2
, but it returns an error because slug is modified without underscorealpha2
before to call database.Is there a way to use underscore slugs ??
http://localhost:8000/api/v1/countries?page%5Bnumber%5D=1&page%5Bsize%5D=15&sort=-name&filter%5Balpha_2%5D=fr
error:
Illuminate\Database\QueryException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'alpha2' in 'where clause' (SQL: select count(*) as aggregate from
countrieswhere
alpha2= fr and
countries.
deleted_atis null) in file /Users/oujaber/Documents/www/xclusiv.fans-pwa/backend/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 703
Thank you.
The text was updated successfully, but these errors were encountered: