8000 Feature/doctrine type guesser simple json array support · symfony/symfony@524bc4b · GitHub
[go: up one dir, main page]

Skip to content

Commit 524bc4b

Browse files
iluuu1994fabpot
authored andcommitted
Feature/doctrine type guesser simple json array support
1 parent 8f5229f commit 524bc4b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Symfony/Bridge/Doctrine/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66

77
* deprecated injecting `ClassMetadataFactory` in `DoctrineExtractor`,
88
an instance of `EntityManagerInterface` should be injected instead
9+
* added support for `simple_array` type
910

1011
4.1.0
1112
-----

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