Skip to content

Commit 5fabac8

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: Added a note about UniqueEntity and collections Added a note about PHPUnit setLocale() method
2 parents b96fef2 + 23f915a commit 5fabac8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

components/phpunit_bridge.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ The PHPUnit Bridge
1010

1111
It comes with the following features:
1212

13-
* Forces the tests to use a consistent locale (``C``);
13+
* Forces the tests to use a consistent locale (``C``) (if you create
14+
locale-sensitive tests, use PHPUnit's ``setLocale()`` method);
1415

1516
* Auto-register ``class_exists`` to load Doctrine annotations (when used);
1617

reference/constraints/UniqueEntity.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ between all of the constraints in your user table:
110110
this validation has passed and before this entity is actually persisted in
111111
the database.
112112

113+
.. caution::
114+
115+
This constraint cannot deal with duplicates found in a collection of items
116+
that haven't been persisted as entities yet. You'll need to create your own
117+
validator to handle that case.
118+
113119
Options
114120
-------
115121

0 commit comments

Comments
 (0)