RecursiveValidator::validatePropertyValue()

ConstraintViolationListInterface validatePropertyValue(object|string $objectOrClass, string $propertyName, mixed $value, array|null $groups = null)

Validates a value against the constraints specified for an object's property.

Parameters

object|string $objectOrClass The object or its class name
string $propertyName The name of the property
mixed $value The value to validate against the property's constraints
array|null $groups The validation groups to validate. If none is given, "Default" is assumed

Return Value

ConstraintViolationListInterface A list of constraint violations If the list is empty, validation succeeded
doc_Symfony
2016-10-28 06:28:37
Comments
Leave a Comment

Please login to continue.