Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser::guessRequiredForConstraint
Guesses whether a field is required based on the given constraint
Signature
public function guessRequiredForConstraint(Constraint
$constraint )
Parameters
$constraint
— Symfony\Component\Validator\Constraint- The constraint to guess for
Returns
- Guess
- The guess whether the field is required