File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,14 @@ It defines the object property whose value is used to make the comparison.
8
8
For example, if you want to compare the ``$endDate`` property of some object
9
9
with regard to the ``$startDate`` property of the same object, use
10
10
``propertyPath= " startDate" `` in the comparison constraint of ``$endDate``.
11
+
12
+ .. tip::
13
+
14
+ When using this option, its value is available in error messages as the
15
+ ``{{ compared_value_path }}`` placeholder. Although it' s not intended to
16
+ include it in the error messages displayed to end users, it' s useful when
17
+ using APIs for doing any mapping logic on client- side.
18
+
19
+ .. versionadded:: 4 .4
20
+
21
+ The ``{{ compared_value_path }}`` placeholder was introduced in Symfony 4 .4 .
You can’t perform that action at this time.
0 commit comments