Skip to content

doctrine:generate:form - Could not load type "date" #17510

@dialogik

Description

@dialogik

Issue

When creating a form type via doctrine:generate:form it creates a line

->add('birthday', 'date')

which invokes the error

Could not load type "date"

Fix proposal

It should create a line

->add('birthday', DateType::class)

while importing the DateType

use Symfony\Component\Form\Extension\Core\Type\DateType;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions