symfony
symfony copied to clipboard
doctrine:generate:form - Could not load type "date"
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;
This command does not live in the Symfony package, but in the SensioGeneratorBundle instead. Please report this issue in that repository and close this one.
Yes, and there is already PR to fix it https://github.com/sensiolabs/SensioGeneratorBundle/pull/464
@WouterJ Yes sure, please excuse.