ValidatorInterface::validateProperty()

ConstraintViolationListInterface validateProperty(object $object, string $propertyName, array|null $groups = null)

Validates a property of an object against the constraints specified for this property.

Parameters

object $object The object
string $propertyName The name of the validated property
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:36:52
Comments
Leave a Comment

Please login to continue.