Skip to content

[Form] Add type guesser support for Doctrine's simple_array and json_array #24029

@iluuu1994

Description

@iluuu1994
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes
Symfony version 3.4

The DoctrineOrmTypeGuesser guesses the type of properties by their Doctrine annotations. The simple_array and json_array types are missing:

https://github.com/symfony/symfony/blob/v3.3.8/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php#L55-L56

Symfony currently uses doctrine/dbal: ~2.4 which supports simple_array as well as json_array:

https://github.com/doctrine/dbal/blob/v2.4.0/lib/Doctrine/DBAL/Types/Type.php#L37-L38

Will this be accepted if I create a pull request?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions