Is there any option to get a result set as an array without the recuirsive nature of toArray.
1) Being able to get a complete result set as an array is a common requirement.
2) An array of objects is preferable to an array of arrays because it allows the much neater Volt syntax of object.property as opposed to array['element']
3) Unfortunately,->setHydrateMode(Resultset::HYDRATE_OBJECTS)->toArray() returns an array of arrays rather than an array of objects, which is counter intuitive and non-useful.
Just an idea, but how about a 'recursive = false' parameter for toArray (or default to true as a comromise for BC), and is there already a builtin way to return just as array of result objects?
== Edit ===
As result sets are iterable, simply passing an object hydrated result set into volt of course works fine, so toArray isn't required for that scenario, but for cases where an array is desired, a non-recursive option would be nice.