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

Custom search operators #174

Open
hastom opened this issue Oct 10, 2017 · 2 comments
Open

Custom search operators #174

hastom opened this issue Oct 10, 2017 · 2 comments

Comments

@hastom
Copy link

hastom commented Oct 10, 2017

Hi,

I want to add some custom operators to where method (like more flexible between that adapts if there is only one value in array) and support for literal operators like 'ge' (>), 'le'(<) and others. So I extended QueryBuilderHandler class and overrided "where" and "orWhere" methods. Everything worked fine until I tried to use my custom operators inside nested criteria. I figured out that it happens because NestedCriteria class extends QueryBuilderHandler and not my custom class. I cannot extend it too because its injected inside BaseAdapter and I dont want to extend everithing..

May be im doing something wrong? Any ideas?

@hastom hastom changed the title custom search operators Custom search operators Oct 10, 2017
@usmanhalalit
Copy link
Owner

You're not doing wrong, that's a limitation of the lib. Can you please come up with a list of operators you would like have added?

@eL-Prova
Copy link

eL-Prova commented Feb 5, 2018

And a simple example can be helpful

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

3 participants