[Form] Added a field guess for AssertType('\DateTime') constraint
This commit is contained in:
parent
ce61baf717
commit
34865a3533
@ -137,6 +137,12 @@ class ValidatorFieldFactoryGuesser implements FieldFactoryGuesserInterface
|
||||
array(),
|
||||
FieldFactoryGuess::LOW_CONFIDENCE
|
||||
);
|
||||
case '\DateTime':
|
||||
return new FieldFactoryClassGuess(
|
||||
'Symfony\Component\Form\DateField',
|
||||
array(),
|
||||
FieldFactoryGuess::MEDIUM_CONFIDENCE
|
||||
);
|
||||
}
|
||||
break;
|
||||
case 'Symfony\Component\Validator\Constraints\Choice':
|
||||
|
Reference in New Issue
Block a user