RecursiveValidator::startContext()

ContextualValidatorInterface startContext($root = null)

Starts a new validation context and returns a validator for that context.

The returned validator collects all violations generated within its context. You can access these violations with the {@link ContextualValidatorInterface::getViolations()} method.

Parameters

$root

Return Value

ContextualValidatorInterface The validator for the new context
doc_Symfony
2016-10-28 06:28:36
Comments
Leave a Comment

Please login to continue.