public function ValidatorInterface::validateProperty in Plug 7
Same name in this branch
- 7 lib/Symfony/validator/Symfony/Component/Validator/ValidatorInterface.php \Symfony\Component\Validator\ValidatorInterface::validateProperty()
- 7 lib/Symfony/validator/Symfony/Component/Validator/Validator/ValidatorInterface.php \Symfony\Component\Validator\Validator\ValidatorInterface::validateProperty()
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
1 method overrides ValidatorInterface::validateProperty()
- RecursiveValidator::validateProperty in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ RecursiveValidator.php - Validates a property of an object against the constraints specified for this property.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ ValidatorInterface.php, line 59
Class
- ValidatorInterface
- Validates PHP values against constraints.
Namespace
Symfony\Component\Validator\ValidatorCode
public function validateProperty($object, $propertyName, $groups = null);