Skip to content

Commit 13a6a8e

Browse files
committed
Added a note about UniqueEntity and collections
1 parent f866de7 commit 13a6a8e

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)