Skip to content

Commit 41f5ea3

Browse files
authored
improvement(DB storage): improvement on type stored
An improvement has been made in order to explain the usage of an int via MarkingStoreInterface
1 parent 8bad73f commit 41f5ea3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

workflow/usage.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ like this:
161161
If a ``multiple_state`` is used, the persisted state type should be an ``array``,
162162
using Doctrine, you can use ``json`` or ``json_array``.
163163

164-
If a ``single_state`` is used, the persisted state type could be a string
164+
If a ``single_state`` is used, the persisted state type could be a string,
165+
if you need to store an int (due to DB limitations and/or project constraints),
166+
be aware that you need to implement :class:`Symfony\\Component\\Workflow\\MarkingStore\\MarkingStoreInterface`
167+
in order to transform the int back to something understandable by Workflow.
165168

166169
If something else is used, you're in charge of choosing the best storage format.
167170

0 commit comments

Comments
 (0)