Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf8b45fe

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: Minor tweaks [Validator] UniqueEntity - add warning about not supported types and association mappings.
2 parentsd31c2d4 +a33339f commitf8b45fe

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)

[8]ページ先頭

©2009-2025 Movatter.jp