ConstraintViolationInterface::getRoot()

mixed getRoot()

Returns the root element of the validation.

Return Value

mixed The value that was passed originally to the validator when the validation was started. Because the validator traverses the object graph, the value at which the violation occurs is not necessarily the value that was originally validated.
doc_Symfony
2016-10-28 06:11:40
Comments
Leave a Comment

Please login to continue.