File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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-
150150Options
151151-------
152152
You can’t perform that action at this time.
0 commit comments