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

Appearance settings

Commit 13a6a8e

Browse filesBrowse files
committed
Added a note about UniqueEntity and collections
1 parent f866de7 commit 13a6a8e
Copy full SHA for 13a6a8e

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎reference/constraints/UniqueEntity.rst

Copy file name to clipboardExpand all lines: reference/constraints/UniqueEntity.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ your user table:
114114
this validation has passed and before this entity is actually persisted in
115115
the database.
116116

117+
.. caution::
118+
119+
This constraint cannot deal with duplicates found in a collection of items
120+
that haven't been persisted as entities yet. You'll need to create your own
121+
validator to handle that case.
122+
117123
Options
118124
-------
119125

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.