ExecutionContextInterface::getRoot()

mixed getRoot()

Returns the value at which validation was started in the object graph.

The validator, when given an object, traverses the properties and related objects and their properties. The root of the validation is the object from which the traversal started.

The current value is returned by {@link getValue}.

Return Value

mixed The root value of the validation
doc_Symfony
2016-10-28 06:15:55
Comments
Leave a Comment

Please login to continue.