Skip to content

Commit 481f5da

Browse files
committed
minor #12575 Removing notes about doctrine_clear_entity_manager middleware (weaverryan)
This PR was merged into the 4.4 branch. Discussion ---------- Removing notes about doctrine_clear_entity_manager middleware See symfony/symfony#34156 That class was added in 4.4... then removed for 4.4 - so it was never released. I don't think the new "subscriber" added there needs docs - I'll open a PR in DoctrineBundle so that it's (ideally) enabled by default. I see this more as a bug fix that should... just work without you knowing/caring. Commits ------- fdf457a removing notes about doctrine_clear_entity_manager middleware
2 parents 76717bc + fdf457a commit 481f5da

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

messenger.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,11 +1411,6 @@ may want to use:
14111411
# or pass a different entity manager to any
14121412
#- doctrine_transaction: ['custom']
14131413
1414-
# After handling, the clear() method is executed in the
1415-
# entity manager, which reduces the memory consumption and
1416-
# avoids side-effects related to unrefreshed entities
1417-
- doctrine_clear_entity_manager
1418-
14191414
.. code-block:: xml
14201415
14211416
<!-- config/packages/messenger.xml -->
@@ -1441,8 +1436,6 @@ may want to use:
14411436
<framework:argument>custom</framework:argument>
14421437
</framework:middleware>
14431438
-->
1444-
1445-
<framework:middleware id="doctrine_clear_entity_manager"/>
14461439
</framework:bus>
14471440
</framework:messenger>
14481441
</framework:config>
@@ -1461,17 +1454,12 @@ may want to use:
14611454
'doctrine_close_connection',
14621455
// Using another entity manager
14631456
['id' => 'doctrine_transaction', 'arguments' => ['custom']],
1464-
'doctrine_clear_entity_manager',
14651457
],
14661458
],
14671459
],
14681460
],
14691461
]);
14701462
1471-
.. versionadded:: 4.4
1472-
1473-
The ``doctrine_clear_entity_manager`` middleware was introduced in Symfony 4.4.
1474-
14751463
Messenger Events
14761464
~~~~~~~~~~~~~~~~
14771465

0 commit comments

Comments
 (0)