Skip to content

Commit 3a9a287

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [Doctrine] Replace entityManager by objectManager [Performance] Update parameter to compile-time prefix
2 parents 887f2c8 + 1f2047f commit 3a9a287

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

doctrine.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,13 +784,13 @@ control behavior:
784784
If true, then when ``findOneBy()`` is used, any values that are
785785
``null`` will not be used for the query.
786786

787-
``entityManager``
787+
``objectManager``
788788
By default, the ``EntityValueResolver`` uses the *default*
789-
entity manager, but you can configure this::
789+
object manager, but you can configure this::
790790

791791
#[Route('/product/{id}')]
792792
public function show(
793-
#[MapEntity(entityManager: ['foo'])]
793+
#[MapEntity(objectManager: 'foo')]
794794
Product $product
795795
): Response {
796796
}

performance.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ container into a single file, which could improve performance when using
6060
# config/services.yaml
6161
parameters:
6262
# ...
63-
container.dumper.inline_factories: true
63+
.container.dumper.inline_factories: true
6464
6565
.. code-block:: xml
6666
@@ -72,7 +72,7 @@ container into a single file, which could improve performance when using
7272
7373
<parameters>
7474
<!-- ... -->
75-
<parameter key="container.dumper.inline_factories">true</parameter>
75+
<parameter key=".container.dumper.inline_factories">true</parameter>
7676
</parameters>
7777
</container>
7878
@@ -81,10 +81,15 @@ container into a single file, which could improve performance when using
8181
// config/services.php
8282
8383
// ...
84-
$container->parameters()->set('container.dumper.inline_factories', true);
84+
$container->parameters()->set('.container.dumper.inline_factories', true);
8585
8686
.. _performance-use-opcache:
8787

88+
.. tip::
89+
90+
The ``.`` prefix denotes a parameter that is only used during compilation of the container.
91+
See :ref:`Configuration Parameters <configuration-parameters>` for more details.
92+
8893
Use the OPcache Byte Code Cache
8994
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9095

0 commit comments

Comments
 (0)