Skip to content

Commit 74dd6a8

Browse files
authored
Update UniqueEntity.rst
1 parent 9c7e2da commit 74dd6a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,9 @@ fields configured in the ``fields`` option). The method should return a
406406

407407
This constraint does not support Doctrine types such as ``simple_array``,
408408
``json``, or ``jsonb``, nor does it handle association mappings like
409-
``One-To-Many`` and ``Many-To-Many`` relationships. To perform uniqueness
410-
checks on such fields, you must define a custom ``repositoryMethod`` that
409+
``One-To-Many`` and ``Many-To-Many`` relationships. It may also not work
410+
correctly with custom Doctrine types. To perform uniqueness checks on
411+
such fields, you must define a custom ``repositoryMethod`` that
411412
implements the desired logic.
412413

413414
.. _`race conditions`: https://en.wikipedia.org/wiki/Race_condition

0 commit comments

Comments
 (0)