Parcourir la source

fixed json deserializeValue

develop
Robin Thoni il y a 10 ans
Parent
révision
182a48c10f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      src/Utils/Dbo/LuDbo.php

+ 2
- 2
src/Utils/Dbo/LuDbo.php Voir le fichier

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
         }

Chargement…
Annuler
Enregistrer