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 where equal #9

Open
noelyriosquantion opened this issue Jun 1, 2022 · 0 comments
Open

Filters where equal #9

noelyriosquantion opened this issue Jun 1, 2022 · 0 comments

Comments

@noelyriosquantion
Copy link

Buenas, he visto el repositorio y estoy haciendo unas pruebas, la duda que tengo es para hacer la siguiente consulta:
select count(id) from table where id = value and other_field = 'value2';

He seguido la estructura del filter, que sería así:
$filters = new Filter();
$filters->must()->equal('id', value);
$filters->must()->equal('other_field', 'value2');

total = parent::count($filters);

mi duda está en que el processCondition peta en querer comprobar el valor si es array
if (count($value[0]) > 1) { $where = static::filterRanges.......... } else { $where = static::filterGroup.......... }
Cuando realmente no quiero que entre en rango, ni en grupo, pero los filtros, siempre los trata como array.

Cual puede ser la solución.

Gracias

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