Skip to content

Commit

Permalink
Update TypeGuesser for hash, array and boolean types
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Vella committed Jun 4, 2012
1 parent 671487a commit dc00eba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Guesser/TypeGuesser.php
Expand Up @@ -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':
Expand Down

0 comments on commit dc00eba

Please sign in to comment.