We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 48669b8 + f8b45fe commit 6cb43b7Copy full SHA for 6cb43b7
reference/constraints/UniqueEntity.rst
@@ -126,6 +126,14 @@ between all of the rows in your user table:
126
}
127
128
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
137
.. warning::
138
139
This constraint doesn't provide any protection against `race conditions`_.
0 commit comments