ConstraintViolationInterface::getPropertyPath()

string getPropertyPath()

Returns the property path from the root element to the violation.

Return Value

string The property path indicates how the validator reached the invalid value from the root element. If the root element is a Person instance with a property "address" that contains an Address instance with an invalid property "street", the generated property path is "address.street". Property access is denoted by dots, while array access is denoted by square brackets, for example "addresses[1].street".
doc_Symfony
2016-10-28 06:11:40
Comments
Leave a Comment

Please login to continue.