Skip to content

Removing notes about doctrine_clear_entity_manager middleware #12575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1411,11 +1411,6 @@ may want to use:
# or pass a different entity manager to any
#- doctrine_transaction: ['custom']

# After handling, the clear() method is executed in the
# entity manager, which reduces the memory consumption and
# avoids side-effects related to unrefreshed entities
- doctrine_clear_entity_manager

.. code-block:: xml

<!-- config/packages/messenger.xml -->
Expand All @@ -1441,8 +1436,6 @@ may want to use:
<framework:argument>custom</framework:argument>
</framework:middleware>
-->

<framework:middleware id="doctrine_clear_entity_manager"/>
</framework:bus>
</framework:messenger>
</framework:config>
Expand All @@ -1461,17 +1454,12 @@ may want to use:
'doctrine_close_connection',
// Using another entity manager
['id' => 'doctrine_transaction', 'arguments' => ['custom']],
'doctrine_clear_entity_manager',
],
],
],
],
]);

.. versionadded:: 4.4

The ``doctrine_clear_entity_manager`` middleware was introduced in Symfony 4.4.

Messenger Events
~~~~~~~~~~~~~~~~

Expand Down