Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/ConstraintViolationInterface.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
17 * For each constraint that fails during validation one or more violations are | 17 * For each constraint that fails during validation one or more violations are |
18 * created. The violations store the violation message, the path to the failing | 18 * created. The violations store the violation message, the path to the failing |
19 * element in the validation graph and the root element that was originally | 19 * element in the validation graph and the root element that was originally |
20 * passed to the validator. For example, take the following graph: | 20 * passed to the validator. For example, take the following graph: |
21 * | 21 * |
22 * <pre> | 22 * (Person)---(firstName: string) |
23 * (Person)---(firstName: string) | 23 * \ |
24 * \ | 24 * (address: Address)---(street: string) |
25 * (address: Address)---(street: string) | |
26 * </pre> | |
27 * | 25 * |
28 * If the <tt>Person</tt> object is validated and validation fails for the | 26 * If the <tt>Person</tt> object is validated and validation fails for the |
29 * "firstName" property, the generated violation has the <tt>Person</tt> | 27 * "firstName" property, the generated violation has the <tt>Person</tt> |
30 * instance as root and the property path "firstName". If validation fails | 28 * instance as root and the property path "firstName". If validation fails |
31 * for the "street" property of the related <tt>Address</tt> instance, the root | 29 * for the "street" property of the related <tt>Address</tt> instance, the root |