Skip to content

Commit be197cf

Browse files
committed
minor #11157 [REFACTOR] Messenger - Serializer groups (Guikingone)
This PR was submitted for the 4.2 branch but it was squashed and merged into the 4.3 branch instead (closes #11157). Discussion ---------- [REFACTOR] Messenger - Serializer groups Hi everyone, I've faced some problems yesterday due to groups definition (mainly about embedded objects) and I think it could be a good idea to add a tip (or even a note?) about the `groups` usage. Any idea? Thanks :) Commits ------- bea832f [REFACTOR] Messenger - Serializer groups
2 parents 913afb7 + bea832f commit be197cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/messenger.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ through the transport layer, use the ``SerializerStamp`` stamp::
139139
]))
140140
);
141141

142+
.. note::
143+
144+
As the groups are applied to the whole message,
145+
be sure to define the group for every embedded object.
146+
142147
At the moment, the Symfony Messenger has the following built-in envelope stamps:
143148

144149
#. :class:`Symfony\\Component\\Messenger\\Stamp\\SerializerStamp`,

0 commit comments

Comments
 (0)