Commit d6102062 authored by Kristian Feldsam's avatar Kristian Feldsam
Browse files

Resource all method prereserve keys


Signed-off-by: Kristian Feldsam's avatarKristian Feldsam <feldsam@gmail.com>
parent 0b038cf8
......@@ -104,8 +104,8 @@ class Resource
$data = $this->dot->all();
$result = [];
foreach ($data as $row) {
$result[] = new Resource($row);
foreach ($data as $k => $row) {
$result[$k] = new Resource($row);
}
return $result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment