Skip to content

Commit 596bea5

Browse files
committed
Moved version directive before heading
1 parent 9a12aeb commit 596bea5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ using an email address that already exists in the system.
1212
| | - `message`_ |
1313
| | - `em`_ |
1414
| | - `repositoryMethod`_ |
15+
| | - `ignoreNull`_ |
1516
+----------------+-------------------------------------------------------------------------------------+
1617
| Class | :class:`Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity` |
1718
+----------------+-------------------------------------------------------------------------------------+
@@ -150,14 +151,14 @@ The name of the repository method to use for making the query to determine the
150151
uniqueness. If it's left blank, the ``findBy`` method will be used. This
151152
method should return a countable result.
152153

154+
.. versionadded:: 2.1
155+
The ``ignoreNull`` option was added in Symfony 2.1.
156+
153157
ignoreNull
154158
~~~~~~~~~~
155159

156160
**type**: ``Boolean`` **default**: ``true``
157161

158-
.. versionadded:: 2.1
159-
The ``ignoreNull`` option was added in Symfony 2.1.
160-
161162
If this option is set to ``true``, it allows having multiple ``null`` values for
162163
the field(s) without failing the unique constraint. If set to ``false``, only one
163164
``null`` value is allowed.

0 commit comments

Comments
 (0)