Swader / diffbot-php-client

[Deprecated - Maintenance mode - use APIs directly please!] The official Diffbot client library
MIT License
53 stars 20 forks source link

EntityIterator - no support for missing keys #14

Closed Swader closed 9 years ago

Swader commented 9 years ago

When manipulating returned data to, for example, unset some of the entities (due to Search API returning duplicates, for example), the EntityIterator uses next() to advance the cursor by one, but that cursor may not exist due to prior manipulation of the EntityIterator's data. So iterating directly on this changed EI will cause problems.

Solutions: