Hey there!
When I run this php query on a web page it’s not working. It OR’s some of the db rows, but not all. What I get is somewhat OR and somewhat an AND…
Any idea why?
I mean, we need a way to reproduce your problem in order to confirm and fix it. So I am asking you to provide an exact where clause, like $where0 = “friend_id = ‘123466’ or user_id = ‘12345’”;, your application credentials (app id and secret key) and the data, on which the issue would reproduce (you may export your own from console). Ideally, you would send a minimal sample application, which does the same. You may publish it here or send to support@backendless.com
BackendlessDataQuery retrieves only 10 objects by default. In order to retrieve all objects matching a query, you need either to set page size manually, like $query0->setPageSize(100);, or use nextPage method of BackendlessCollection, which will retrieve the next 10 objects of the collection.
Initially you have access to 1-10 results, when you do nextPage - you have access to 11-20 results, and so on. So to some extent, yes, you loose the first 10 results if you failed to process them before.
There is no option to set an unlimited pageSize, but you may set some big value to it, which will be effectively the same.