Explorar o código

Fix list array

Emmanuel Vella %!s(int64=13) %!d(string=hai) anos
pai
achega
5556c21a33
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      Guesser/TypeGuesser.php

+ 3 - 3
Guesser/TypeGuesser.php

@@ -64,8 +64,8 @@ class TypeGuesser implements TypeGuesserInterface
 
         switch ($metadata->getTypeOfField($property))
         {
-            //case 'array':
-            //  return new TypeGuess('Collection', array(), Guess::HIGH_CONFIDENCE);
+            case 'array':
+                return new TypeGuess('array', array(), Guess::HIGH_CONFIDENCE);
             case 'boolean':
                 return new TypeGuess('boolean', array(), Guess::HIGH_CONFIDENCE);
             case 'datetime':
@@ -107,4 +107,4 @@ class TypeGuesser implements TypeGuesserInterface
             }
         }
     }
-}
+}