Hi to all,
I notice that MongoDB ODM count does not work with parameters. You can read it here: https://docs.phalcon.io/en/latest/reference/odm.html
You see, regardless of the parameter I set, say,
array('field'=>'value_to_check')
It will disregard that and give the complete list instead.
My question is, am I doing it wrong? Because the documentation doesn't tell much, quite honestly, which needs to improve. If I am not doing it wrong, then what went wrong? The code is pretty much like this:
CollectionModel::count(array('field'=>'value_to_check'));
Looking forward for some clarifications.
Thanks a lot,