Symfony\Component\Validator\Mapping\ClassMetadata::addPropertyConstraint
Adds a constraint to the given property.
Signature
public function addPropertyConstraint(string
$property,
Constraint
$constraint )
Parameters
$property
— string- The name of the property
$constraint
— Symfony\Component\Validator\Constraint- The constraint
Returns
- ClassMetadata
- This object