Skip to content

Commit a33339f

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: Minor tweaks [Validator] UniqueEntity - add warning about not supported types and association mappings.
2 parents 4854f58 + f049598 commit a33339f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 8 additions & 0 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`_.

0 commit comments

Comments
 (0)