8000 Add support for simple_array and json_array in DoctrineOrmTypeGuesser · symfony/symfony@4d30729 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d30729

Browse files
committed
Add support for simple_array and json_array in DoctrineOrmTypeGuesser
Symfony currently supports doctrine/dbal ~2.4 which has support for both simple_array and json_array: doctrine/dbal@44cd77f doctrine/dbal@2d183ac
1 parent 84ce7e6 commit 4d30729

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function guessType($class, $property)
5353

5454
switch ($metadata->getTypeOfField($property)) {
5555
case Type::TARRAY:
56+
case Type::SIMPLE_ARRAY:
5657
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\CollectionType', array(), Guess::MEDIUM_CONFIDENCE);
5758
case Type::BOOLEAN:
5859
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\CheckboxType', array(), Guess::HIGH_CONFIDENCE);

0 commit comments

Comments
 (0)
0