Browse Source

fixed json deserializeValue

develop
Robin Thoni 8 years ago
parent
commit
182a48c10f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/Utils/Dbo/LuDbo.php

+ 2
- 2
src/Utils/Dbo/LuDbo.php View File

101
             }
101
             }
102
             $type = substr($type, 0, strlen($type) - 2);
102
             $type = substr($type, 0, strlen($type) - 2);
103
             $data = [];
103
             $data = [];
104
-            foreach ($value as $v) {
104
+            foreach ($value as $key => $v) {
105
                 $value = self::deserializeValue($v, $type, $constraints);
105
                 $value = self::deserializeValue($v, $type, $constraints);
106
-                $data[] = $value;
106
+                $data[$key] = $value;
107
             }
107
             }
108
             return $data;
108
             return $data;
109
         }
109
         }

Loading…
Cancel
Save