Explorar el Código

fixed json deserializeValue

develop
Robin Thoni hace 10 años
padre
commit
182a48c10f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/Utils/Dbo/LuDbo.php

+ 2
- 2
src/Utils/Dbo/LuDbo.php Ver fichero

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…
Cancelar
Guardar