Skip to content

Commit 896369e

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Enhancement: Use the same tables across all constraints
2 parents 94048f9 + af2508e commit 896369e

15 files changed

+140
-183
lines changed

reference/constraints/Currency.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@ Currency
33

44
Validates that a value is a valid `3-letter ISO 4217`_ currency name.
55

6-
+----------------+---------------------------------------------------------------------------+
7-
| Applies to | :ref:`property or method <validation-property-target>` |
8-
+----------------+---------------------------------------------------------------------------+
9-
| Options | - `groups`_ |
10-
| | - `message`_ |
11-
| | - `payload`_ |
12-
+----------------+---------------------------------------------------------------------------+
13-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Currency` |
14-
+----------------+---------------------------------------------------------------------------+
15-
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\CurrencyValidator` |
16-
+----------------+---------------------------------------------------------------------------+
6+
========== ===================================================================
7+
Applies to :ref:`property or method <validation-property-target>`
8+
Options - `groups`_
9+
- `message`_
10+
- `payload`_
11+
Class :class:`Symfony\\Component\\Validator\\Constraints\\Currency`
12+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\CurrencyValidator`
13+
========== ===================================================================
1714

1815
Basic Usage
1916
-----------

reference/constraints/EqualTo.rst

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,17 @@ To force that a value is *not* equal, see :doc:`/reference/constraints/NotEqualT
1010
equal. Use :doc:`/reference/constraints/IdenticalTo` to compare with
1111
``===``.
1212

13-
+----------------+-----------------------------------------------------------------------+
14-
| Applies to | :ref:`property or method <validation-property-target>` |
15-
+----------------+-----------------------------------------------------------------------+
16-
| Options | - `groups`_ |
17-
| | - `message`_ |
18-
| | - `payload`_ |
19-
| | - `propertyPath`_ |
20-
| | - `value`_ |
21-
+----------------+-----------------------------------------------------------------------+
22-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\EqualTo` |
23-
+----------------+-----------------------------------------------------------------------+
24-
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\EqualToValidator` |
25-
+----------------+-----------------------------------------------------------------------+
13+
14+
========== ===================================================================
15+
Applies to :ref:`property or method <validation-property-target>`
16+
Options - `groups`_
17+
- `message`_
18+
- `payload`_
19+
- `propertyPath`_
20+
- `value`_
21+
Class :class:`Symfony\\Component\\Validator\\Constraints\\EqualTo`
22+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\EqualToValidator`
23+
========== ===================================================================
2624

2725
Basic Usage
2826
-----------

reference/constraints/GreaterThan.rst

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,16 @@ force that a value is greater than or equal to another value, see
66
:doc:`/reference/constraints/GreaterThanOrEqual`. To force a value is less
77
than another value, see :doc:`/reference/constraints/LessThan`.
88

9-
+----------------+---------------------------------------------------------------------------+
10-
| Applies to | :ref:`property or method <validation-property-target>` |
11-
+----------------+---------------------------------------------------------------------------+
12-
| Options | - `groups`_ |
13-
| | - `message`_ |
14-
| | - `payload`_ |
15-
| | - `propertyPath`_ |
16-
| | - `value`_ |
17-
+----------------+---------------------------------------------------------------------------+
18-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThan` |
19-
+----------------+---------------------------------------------------------------------------+
20-
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanValidator` |
21-
+----------------+---------------------------------------------------------------------------+
9+
========== ===================================================================
10+
Applies to :ref:`property or method <validation-property-target>`
11+
Options - `groups`_
12+
- `message`_
13+
- `payload`_
14+
- `propertyPath`_
15+
- `value`_
16+
Class :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThan`
17+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanValidator`
18+
========== ===================================================================
2219

2320
Basic Usage
2421
-----------

reference/constraints/GreaterThanOrEqual.rst

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,16 @@ Validates that a value is greater than or equal to another value, defined in
55
the options. To force that a value is greater than another value, see
66
:doc:`/reference/constraints/GreaterThan`.
77

8-
+----------------+----------------------------------------------------------------------------------+
9-
| Applies to | :ref:`property or method <validation-property-target>` |
10-
+----------------+----------------------------------------------------------------------------------+
11-
| Options | - `groups`_ |
12-
| | - `message`_ |
13-
| | - `payload`_ |
14-
| | - `propertyPath`_ |
15-
| | - `value`_ |
16-
+----------------+----------------------------------------------------------------------------------+
17-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqual` |
18-
+----------------+----------------------------------------------------------------------------------+
19-
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqualValidator` |
20-
+----------------+----------------------------------------------------------------------------------+
8+
========== ===================================================================
9+
Applies to :ref:`property or method <validation-property-target>`
10+
Options - `groups`_
11+
- `message`_
12+
- `payload`_
13+
- `propertyPath`_
14+
- `value`_
15+
Class :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqual`
16+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqualValidator`
17+
========== ===================================================================
2118

2219
Basic Usage
2320
-----------

reference/constraints/Iban.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,14 @@ format of an `International Bank Account Number (IBAN)`_. IBAN is an
66
internationally agreed means of identifying bank accounts across national
77
borders with a reduced risk of propagating transcription errors.
88

9-
+----------------+-----------------------------------------------------------------------+
10-
| Applies to | :ref:`property or method <validation-property-target>` |
11-
+----------------+-----------------------------------------------------------------------+
12-
| Options | - `groups`_ |
13-
| | - `message`_ |
14-
| | - `payload`_ |
15-
+----------------+-----------------------------------------------------------------------+
16-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Iban` |
17-
+----------------+-----------------------------------------------------------------------+
18-
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\IbanValidator` |
19-
+----------------+-----------------------------------------------------------------------+
9+
========== ===================================================================
10+
Applies to :ref:`property or method <validation-property-target>`
11+
Options - `groups`_
12+
- `message`_
13+
- `payload`_
14+
Class :class:`Symfony\\Component\\Validator\\Constraints\\Iban`
15+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\IbanValidator`
16+
========== ===================================================================
2017

2118
Basic Usage
2219
-----------

reference/constraints/IdenticalTo.rst

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,16 @@ To force that a value is *not* identical, see
1111
considered equal. Use :doc:`/reference/constraints/EqualTo` to compare
1212
with ``==``.
1313

14-
+----------------+--------------------------------------------------------------------------+
15-
| Applies to | :ref:`property or method <validation-property-target>` |
16-
+----------------+--------------------------------------------------------------------------+
17-
| Options | - `groups`_ |
18-
| | - `message`_ |
19-
| | - `payload`_ |
20-
| | - `propertyPath`_ |
21-
| | - `value`_ |
22-
+----------------+--------------------------------------------------------------------------+
23-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\IdenticalTo` |
24-
+----------------+--------------------------------------------------------------------------+
25-
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\IdenticalToValidator`|
26-
+----------------+--------------------------------------------------------------------------+
14+
========== ===================================================================
15+
Applies to :ref:`property or method <validation-property-target>`
16+
Options - `groups`_
17+
- `message`_
18+
- `payload`_
19+
- `propertyPath`_
20+
- `value`_
21+
Class :class:`Symfony\\Component\\Validator\\Constraints\\IdenticalTo`
22+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\IdenticalToValidator`
23+
========== ===================================================================
2724

2825
Basic Usage
2926
-----------

reference/constraints/Isbn.rst

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,18 @@ Isbn
44
This constraint validates that an `International Standard Book Number (ISBN)`_
55
is either a valid ISBN-10 or a valid ISBN-13.
66

7-
+----------------+----------------------------------------------------------------------+
8-
| Applies to | :ref:`property or method <validation-property-target>` |
9-
+----------------+----------------------------------------------------------------------+
10-
| Options | - `bothIsbnMessage`_ |
11-
| | - `groups`_ |
12-
| | - `isbn10Message`_ |
13-
| | - `isbn13Message`_ |
14-
| | - `message`_ |
15-
| | - `payload`_ |
16-
| | - `type`_ |
17-
+----------------+----------------------------------------------------------------------+
18-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Isbn` |
19-
+----------------+----------------------------------------------------------------------+
20-
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\IsbnValidator` |
21-
+----------------+----------------------------------------------------------------------+
7+
========== ===================================================================
8+
Applies to :ref:`property or method <validation-property-target>`
9+
Options - `bothIsbnMessage`_
10+
- `groups`_
11+
- `isbn10Message`_
12+
- `isbn13Message`_
13+
- `message`_
14+
- `payload`_
15+
- `type`_
16+
Class :class:`Symfony\\Component\\Validator\\Constraints\\Isbn`
17+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\IsbnValidator`
18+
========== ===================================================================
2219

2320
Basic Usage
2421
-----------

reference/constraints/Issn.rst

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,16 @@ Issn
44
Validates that a value is a valid
55
`International Standard Serial Number (ISSN)`_.
66

7-
+----------------+-----------------------------------------------------------------------+
8-
| Applies to | :ref:`property or method <validation-property-target>` |
9-
+----------------+-----------------------------------------------------------------------+
10-
| Options | - `caseSensitive`_ |
11-
| | - `groups`_ |
12-
| | - `message`_ |
13-
| | - `payload`_ |
14-
| | - `requireHyphen`_ |
15-
+----------------+-----------------------------------------------------------------------+
16-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Issn` |
17-
+----------------+-----------------------------------------------------------------------+
18-
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\IssnValidator` |
19-
+----------------+-----------------------------------------------------------------------+
7+
========== ===================================================================
8+
Applies to :ref:`property or method <validation-property-target>`
9+
Options - `caseSensitive`_
10+
- `groups`_
11+
- `message`_
12+
- `payload`_
13+
- `requireHyphen`_
14+
Class :class:`Symfony\\Component\\Validator\\Constraints\\Issn`
15+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\IssnValidator`
16+
========== ===================================================================
2017

2118
Basic Usage
2219
-----------

reference/constraints/Json.rst

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@ Json
33

44
Validates that a value has valid `JSON`_ syntax.
55

6-
+----------------+-----------------------------------------------------------------------+
7-
| Applies to | :ref:`property or method <validation-property-target>` |
8-
+----------------+-----------------------------------------------------------------------+
9-
| Options | - `message`_ |
10-
| | - `payload`_ |
11-
+----------------+-----------------------------------------------------------------------+
12-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Json` |
13-
+----------------+-----------------------------------------------------------------------+
14-
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\JsonValidator` |
15-
+----------------+-----------------------------------------------------------------------+
6+
========== ===================================================================
7+
Applies to :ref:`property or method <validation-property-target>`
8+
Options - `message`_
9+
- `payload`_
10+
Class :class:`Symfony\\Component\\Validator\\Constraints\\Json`
11+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\JsonValidator`
12+
========== ===================================================================
1613

1714
Basic Usage
1815
-----------

reference/constraints/LessThan.rst

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,16 @@ force that a value is less than or equal to another value, see
66
:doc:`/reference/constraints/LessThanOrEqual`. To force a value is greater
77
than another value, see :doc:`/reference/constraints/GreaterThan`.
88

9-
+----------------+------------------------------------------------------------------------+
10-
| Applies to | :ref:`property or method <validation-property-target>` |
11-
+----------------+------------------------------------------------------------------------+
12-
| Options | - `groups`_ |
13-
| | - `message`_ |
14-
| | - `payload`_ |
15-
| | - `propertyPath`_ |
16-
| | - `value`_ |
17-
+----------------+------------------------------------------------------------------------+
18-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\LessThan` |
19-
+----------------+------------------------------------------------------------------------+
20-
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\LessThanValidator` |
21-
+----------------+------------------------------------------------------------------------+
9+
========== ===================================================================
10+
Applies to :ref:`property or method <validation-property-target>`
11+
Options - `groups`_
12+
- `message`_
13+
- `payload`_
14+
- `propertyPath`_
15+
- `value`_
16+
Class :class:`Symfony\\Component\\Validator\\Constraints\\LessThan`
17+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\LessThanValidator`
18+
========== ===================================================================
2219

2320
Basic Usage
2421
-----------

0 commit comments

Comments
 (0)