->toArray
Thanks to:
No one :(
Description
Executes an ORM query and returns it as an array. Note that if a query has already been run or gotten the result in another way, toArray() will not run the query again and will instead convert it to an array. ->toArray() will also return a result set with the name keys, unlike ->toList(), which will set the result sets keys and incremental numbers.
Usage: $result->toArray()
debug($result->toArray);
[
'result 1' => resultObject,
'result 2' => resultObject,
... => ...
]