Skip to content

Commit b8da270

Browse files
committed
minor #11436 Added a note about UniqueEntity and collections (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Added a note about UniqueEntity and collections Fixes #10942. Commits ------- 13a6a8e Added a note about UniqueEntity and collections
2 parents f866de7 + 13a6a8e commit b8da270

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reference/constraints/UniqueEntity.rst

Lines 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)