neo4jphp
neo4jphp copied to clipboard
When query returns a collect() column, represent it as something easily convertable to array
When a query returns a collect() column, the collection is (surprisingly!) returned as an instance of Everyman\Neo4j\Query\Row. This class seems neither convertible to an array without running a loop over it, nor does it work with functions like array_slice(). This complicates writing views.
Please add a toArray() method to Row.
+1
I think it's returned as an Iterator
so I've managed to turn it into an array using iterator_to_array without foreach