Skip to content

Commit 2bbc0c9

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: add break lines and remove useless line Update testing.rst Update testing.rst Update testing.rst Add caution message about reset container on each request
2 parents 41f4013 + 5947b3e commit 2bbc0c9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

testing.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,15 @@ This allows you to create all types of requests you can think of:
616616
:ref:`framework.test <reference-framework-test>` option is enabled).
617617
This means you can override the service entirely if you need to.
618618

619+
.. caution::
620+
621+
Before each request, the client reboots the kernel, recreating
622+
the container from scratch.
623+
This ensures that every requests are "isolated" using "new" service objects.
624+
Also, it means that entities loaded by Doctrine repositories will
625+
be "detached", so they will need to be refreshed by the manager or
626+
queried again from a repository.
627+
619628
Browsing the Site
620629
.................
621630

0 commit comments

Comments
 (0)