Closed ballinette closed 8 years ago
cause: fetchAllDocuments
calls advancedFilters
with an empty array as filters
parameters:
https://github.com/kuzzleio/sdk-php/blob/master/src/DataCollection.php#L240
But we need a JSON object instead of an array, according to ElasticSearch.
NB: we need also to document the PHP SDK to explain when the developer should create empty arrays ($myArr = []
), and when he should create empty objects ($myObj = (object)[]
)
While using
fetchAllDocuments
, we have following exception from Kuzzle: "[parse_exception] Failed to derive xcontent"