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

Filters not working as expected if applied twice on same field #5

Open
gauravpadia opened this issue Nov 21, 2019 · 1 comment
Open

Comments

@gauravpadia
Copy link

HI,

If filters applied on same field twice then it doesn't work as expected.

Like for example when scanning between two dates - start date and end date on same "createdDate" field:

$table->scan()->->filter(Condition::attribute('createdDate')->gtOrEq($start_date))->filter(Condition::attribute('createdDate')->ltOrEq($end_date))

As per my findings this is due to same prefix applied to both filters so it will replace same value for prefix "CmpcreatedDate"

Thanks.

@gauravpadia
Copy link
Author

any update regarding this issue ?

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