Skip to content

Commit f049598

Browse files
committed
Minor tweaks
1 parent 9bef9d5 commit f049598

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ between all of the rows in your user table:
126126
}
127127
}
128128
129+
.. warning::
130+
131+
This constraint does not support Doctrine types like ``simple_array``,
132+
``json``, or ``jsonb``, nor does it handle association mappings such as
133+
``OneToMany`` or ``ManyToMany`` relationships. It may also not work
134+
correctly with custom Doctrine types. To check uniqueness for these fields,
135+
define a custom ``repositoryMethod`` that implements the required logic.
136+
129137
.. warning::
130138

131139
This constraint doesn't provide any protection against `race conditions`_.
@@ -139,14 +147,6 @@ between all of the rows in your user table:
139147
that haven't been persisted as entities yet. You'll need to create your own
140148
validator to handle that case.
141149

142-
.. warning::
143-
144-
This constraint does not support Doctrine types such as
145-
``simple_array``, ``json``, or ``jsonb``, nor does it handle association mappings
146-
like ``OneToMany`` and ``ManyToMany`` relationships. It may also not work correctly
147-
with custom Doctrine types. To perform uniqueness checks on such fields, you must
148-
define a custom ``repositoryMethod`` that implements the desired logic.
149-
150150
Options
151151
-------
152152

0 commit comments

Comments
 (0)