Permalink
Browse files

Update TypeGuesser for hash, array and boolean types

  • Loading branch information...
1 parent 671487a commit dc00ebaa28e99483b846d06fbabcf00fa4529378 Emmanuel Vella committed Jun 4, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 Guesser/TypeGuesser.php
View
7 Guesser/TypeGuesser.php
@@ -55,10 +55,11 @@ public function guessType($class, $property, ModelManagerInterface $modelManager
}
switch ($mapping['type']) {
- //case 'array':
- // return new TypeGuess('Collection', array(), Guess::HIGH_CONFIDENCE);
+ case 'hash':
+ case 'array':
+ return new TypeGuess('array', array(), Guess::HIGH_CONFIDENCE);
case 'boolean':
- return new TypeGuess('checkbox', array(), Guess::HIGH_CONFIDENCE);
+ return new TypeGuess('boolean', array(), Guess::HIGH_CONFIDENCE);
case 'datetime':
case 'vardatetime':
case 'datetimetz':

0 comments on commit dc00eba

Please sign in to comment.