Skip to content

Commit eba48c9

Browse files
committed
minor #18342 [Doctrine] Replace entityManager by objectManager (JorickPepin)
This PR was merged into the 6.2 branch. Discussion ---------- [Doctrine] Replace entityManager by objectManager Cf. https://github.com/symfony/symfony/blob/6.2/src/Symfony/Bridge/Doctrine/Attribute/MapEntity.php#L22 Commits ------- be256a1 [Doctrine] Replace entityManager by objectManager
2 parents 1ad3f64 + be256a1 commit eba48c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doctrine.rst

+3-3
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
}

0 commit comments

Comments
 (0)