timkley / weaviate-php

A PHP client to communicate with a Weaviate instance
MIT License
27 stars 9 forks source link

fix DataObject Collection to return only objects key #8

Closed denistorresan closed 11 months ago

denistorresan commented 11 months ago

Fix DataObject Collection because it returns the json representation of Weaviate resultset, instead of a Collection of "objects" key. It was not possible to make a foreach of items because the items representation is inside "objects" and not on the root of the json object.

timkley commented 11 months ago

Hi @denistorresan, thanks for bringing that up, I've fixed it in the latest release and added a test so it doesn't happen again :)